5 CFLAGS ?
= -I.
/lua-5.1
.4/src
-I.
/cyassl-1.4
.0/include -O0
-ggdb3
6 LDFLAGS ?
= -L.
/lua-5.1
.4/src
-L.
/cyassl-1.4
.0/src
/.libs
8 CFLAGS
+= -Wall
--std
=gnu99
10 OBJ
= uhttpd.o uhttpd-file.o uhttpd-utils.o
11 LIB
= -Wl
,--export-dynamic
-lcrypt
-ldl
19 ifeq ($(CGI_SUPPORT
),1)
24 ifeq ($(LUA_SUPPORT
),1)
26 LUALIB
= uhttpd_lua.so
28 $(LUALIB
): uhttpd-lua.c
29 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(FPIC
) \
30 -shared
-lm
-llua
-ldl \
31 -o
$(LUALIB
) uhttpd-lua.c
34 ifeq ($(TLS_SUPPORT
),1)
36 TLSLIB
= uhttpd_tls.so
38 $(TLSLIB
): uhttpd-tls.c
39 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(FPIC
) \
41 -o
$(TLSLIB
) uhttpd-tls.c
45 $(CC
) $(CFLAGS
) -c
-o
$@
$<
47 compile
: $(OBJ
) $(TLSLIB
) $(LUALIB
)
48 $(CC
) -o uhttpd
$(LDFLAGS
) $(LIB
) $(OBJ
)