Support tunslip6 and serialdump with a single makefile

This commit is contained in:
George Oikonomou 2018-05-12 16:29:24 +01:00
parent 93608baed4
commit 4d97186df2
1 changed files with 9 additions and 4 deletions

View File

@ -1,8 +1,13 @@
all: tunslip6
APPS = tunslip6 serialdump
LIB_SRCS = tools-utils.c
DEPEND = tools-utils.h
CFLAGS += -Wall -Werror
all: $(APPS)
tunslip6: tools-utils.c tunslip6.c
CFLAGS += -Wall -Werror -O2
$(APPS) : % : %.c $(LIB_SRCS) $(DEPEND)
$(CC) $(CFLAGS) $< $(LIB_SRCS) -o $@
clean:
rm -f *.o tunslip6
rm -f $(APPS)