mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-18 23:53:15 +08:00
19 lines
407 B
Makefile
19 lines
407 B
Makefile
PROG = multithreaded_restful_server
|
|
SOURCES = $(PROG).c ../../mongoose.c
|
|
APP_FLAGS = -DNS_ENABLE_THREADS $(CFLAGS_EXTRA)
|
|
|
|
ifeq ($(OS), Windows_NT)
|
|
APP_FLAGS += advapi32.lib
|
|
endif
|
|
|
|
all: $(PROG)
|
|
|
|
$(PROG): $(SOURCES)
|
|
$(CC) $(SOURCES) -o $@ -W -Wall -I../.. -pthread $(APP_FLAGS)
|
|
|
|
$(PROG).exe: $(SOURCES)
|
|
cl $(SOURCES) /I../.. /MD /Fe$@ $(APP_FLAGS)
|
|
|
|
clean:
|
|
rm -rf *.gc* *.dSYM *.exe *.obj *.o a.out $(PROG)
|