mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 10:37:49 +08:00
20 lines
410 B
Makefile
20 lines
410 B
Makefile
|
# Copyright (c) 2014 Cesanta Software
|
||
|
# All rights reserved
|
||
|
|
||
|
PROG = hello_world
|
||
|
CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA)
|
||
|
SOURCES = $(PROG).c ../../mongoose.c
|
||
|
|
||
|
all: $(PROG)
|
||
|
./$(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*
|