29 lines
507 B
Makefile
29 lines
507 B
Makefile
# Makefile
|
|
|
|
CPPFLAGS= -Wall
|
|
|
|
all: sobredird serialstats passthru
|
|
|
|
sobredird: redirector.o common.o
|
|
$(CC) -o $@ $^
|
|
|
|
passthru: passthru.o common.o
|
|
$(CC) -o $@ $^
|
|
|
|
serialstats: serialstats.o
|
|
$(CC) -o $@ $^
|
|
|
|
%.o: %.c
|
|
$(CC) -c -Wall $(CFLAGS) $(CPPFLAGS) $< -o $@
|
|
|
|
install:
|
|
mkdir -p $(PREFIX)/bin
|
|
cp -f sobredird $(PREFIX)/bin
|
|
cp -f serialstats $(PREFIX)/bin
|
|
cp -f passthru $(PREFIX)/bin
|
|
|
|
distclean: clean
|
|
|
|
clean:
|
|
rm -f core core.* *.o .*.o *.s *.a .depend tmp_make *~ sobredird serialstats passthru
|