mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-20 04:28:13 +08:00
14 lines
352 B
Makefile
14 lines
352 B
Makefile
PROG ?= example
|
|
DEFS ?= -DMG_ENABLE_LINES=1 -DMG_ENABLE_MIP=1 -DMG_ENABLE_SOCKET=0 -DMG_ENABLE_WINSOCK=0 -I../..
|
|
CFLAGS ?= -W -Wall
|
|
LIBS ?= -lpcap
|
|
|
|
all: $(PROG)
|
|
$(RUN) ./$(PROG) $(ARGS)
|
|
|
|
$(PROG): main.c
|
|
$(CC) main.c ../../mongoose.c $(CFLAGS) $(DEFS) -o $(PROG) $(LIBS)
|
|
|
|
clean:
|
|
rm -rf $(PROG) *.o *.dSYM *.gcov *.gcno *.gcda *.obj *.exe *.ilk *.pdb
|