mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-16 18:39:18 +08:00
e1dd3f06fe
PUBLISHED_FROM=c9cc54df1883aa17606de2b1ffb30f0cd687d037
19 lines
407 B
Makefile
19 lines
407 B
Makefile
PROG = multithreaded_restful_server
|
|
SOURCES = $(PROG).c ../../mongoose.c
|
|
APP_FLAGS = -DMG_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)
|