mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-15 01:29:00 +08:00
19 lines
479 B
Makefile
19 lines
479 B
Makefile
NS=../../mongoose.c
|
|
FLAGS = ../../mongoose.c -I../..
|
|
CFLAGS=-W -Wall -DNS_ENABLE_THREADS -pthread $(CFLAGS_EXTRA)
|
|
PROGS = device_side cloud_side
|
|
|
|
all: $(PROGS)
|
|
|
|
device_side: Makefile device_side.c $(NS)
|
|
$(CC) device_side.c $(FLAGS) -o $@ $(CFLAGS)
|
|
|
|
cloud_side: Makefile cloud_side.c $(NS)
|
|
$(CC) cloud_side.c $(FLAGS) -o $@ $(CFLAGS)
|
|
|
|
device_side.exe: Makefile device_side.c $(NS)
|
|
cl device_side.c $(FLAGS) /MD /Fe$@
|
|
|
|
clean:
|
|
rm -rf *.gc* *.dSYM *.exe *.obj *.o a.out $(PROGS)
|