mongoose/examples/http_client/Makefile

15 lines
324 B
Makefile
Raw Normal View History

2014-08-06 00:14:41 +08:00
PROG = http_client
2014-10-14 18:05:12 +08:00
SOURCES = $(PROG).c ../../mongoose.c
CFLAGS = -W -Wall -I../.. -DNS_ENABLE_SSL -lssl -lcrypto -pthread $(CFLAGS_EXTRA)
all: $(PROG)
$(PROG): $(SOURCES)
$(CC) $(SOURCES) -o $@ $(CFLAGS)
2014-08-06 00:14:41 +08:00
$(PROG).exe: $(SOURCES)
cl $(SOURCES) /I../.. /MD /Fe$@
2014-08-06 00:14:41 +08:00
clean:
rm -rf *.gc* *.dSYM *.exe *.obj *.o a.out $(PROG)