Statistics
| Branch: | Tag: | Revision:

mongoose / examples / dll / Makefile @ eaef5bd1

History | View | Annotate | Download (455 Bytes)

1
# This Makefile builds Mongoose as a shared library on different architectures.
2
# To pass a specific build options, use CFLAGS_EXTRA, for example:
3
# make macos CFLAGS_EXTRA="-DMG_ENABLE_COAP"
4

    
5
CFLAGS = -W -Wall -O2 $(CFLAGS_EXTRA)
6
SRC = ../../mongoose.c
7

    
8
all:
9
	@echo "make <unix|windows> CFLAGS_EXTRA='-O2'"
10

    
11
unix:
12
	$(CC) $(SRC) -shared -o mongoose.so $(CFLAGS)
13

    
14
windows:
15
	cl $(SRC) /LD advapi32.lib $(CFLAGS_EXTRA)
16

    
17
clean:
18
	rm -rf *.so *.dll *.obj *.exe