mongoose/examples/hello_world/Makefile

22 lines
440 B
Makefile
Raw Normal View History

2014-09-10 05:44:57 +08:00
# Copyright (c) 2014 Cesanta Software
# All rights reserved
PROG = hello_world
2014-10-14 18:05:12 +08:00
CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA)
2014-09-10 05:44:57 +08:00
SOURCES = $(PROG).c ../../mongoose.c
all: $(PROG)
run: $(PROG)
2014-09-10 05:44:57 +08:00
./$(PROG)
$(PROG): $(SOURCES) Makefile
$(CC) -o $(PROG) $(SOURCES) $(CFLAGS)
win:
wine cl $(SOURCES) /MD /nologo /DNDEBUG /O1 /I../.. /Fe$(PROG).exe
wine $(PROG).exe
clean:
rm -rf $(PROG) *.exe *.dSYM *.obj *.exp .*o *.lib *.gc*