mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-15 09:49:19 +08:00
e1dd3f06fe
PUBLISHED_FROM=c9cc54df1883aa17606de2b1ffb30f0cd687d037
21 lines
483 B
Makefile
21 lines
483 B
Makefile
PROG = restful_server
|
|
SOURCES = $(PROG).c ../../mongoose.c
|
|
CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA)
|
|
|
|
ifeq ($(SSL), openssl)
|
|
CFLAGS += -DMG_ENABLE_SSL -lssl -lcrypto -lcrypto
|
|
else ifeq ($(SSL), krypton)
|
|
CFLAGS += -DMG_ENABLE_SSL ../../../krypton/krypton.c
|
|
endif
|
|
|
|
all: $(PROG)
|
|
|
|
$(PROG): $(SOURCES)
|
|
$(CC) $(SOURCES) -o $@ $(CFLAGS)
|
|
|
|
$(PROG).exe: $(SOURCES)
|
|
cl $(SOURCES) /I../.. /MD /DMG_ENABLE_THREADS /Fe$@ advapi32.lib
|
|
|
|
clean:
|
|
rm -rf *.gc* *.dSYM *.exe *.obj *.o a.out $(PROG)
|