mirror of
https://github.com/cesanta/mongoose.git
synced 2025-07-22 21:16:15 +08:00
captive-dns
This commit is contained in:
parent
8aa26fb2cd
commit
ae703db6ee
@ -1,11 +1,26 @@
|
|||||||
PROG ?= example
|
SOURCES = mongoose.c main.c
|
||||||
CFLAGS ?= -DMG_IO_SIZE=8192 -DMG_ENABLE_LINES
|
CFLAGS = -W -Wall -Wextra -g
|
||||||
|
|
||||||
|
# Mongoose build options. See https://mongoose.ws/documentation/#build-options
|
||||||
|
CFLAGS += -DMG_IO_SIZE=8192 -DMG_ENABLE_LINES
|
||||||
|
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
# Windows settings. Assume MinGW compiler
|
||||||
|
PROG ?= example.exe # Use .exe suffix for the binary
|
||||||
|
CC = gcc # Use MinGW gcc compiler
|
||||||
|
CFLAGS += -lws2_32 # Link against Winsock library
|
||||||
|
DELETE = cmd /C del /Q /F /S # Command prompt command to delete files
|
||||||
|
else
|
||||||
|
# Mac, Linux
|
||||||
|
PROG ?= example
|
||||||
|
DELETE = rm -rf
|
||||||
|
endif
|
||||||
|
|
||||||
all: $(PROG)
|
all: $(PROG)
|
||||||
$(DEBUGGER) ./$(PROG) $(ARGS)
|
$(RUN) ./$(PROG) $(ARGS)
|
||||||
|
|
||||||
$(PROG): main.c
|
$(PROG): $(SOURCES)
|
||||||
$(CC) ../../mongoose.c -I../.. -W -Wall $(CFLAGS) -o $(PROG) main.c
|
$(CC) $(SOURCES) $(CFLAGS) $(CFLAGS_EXTRA) -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(PROG) *.o *.dSYM *.gcov *.gcno *.gcda *.obj *.exe *.ilk *.pdb
|
$(DELETE) $(PROG) *.dSYM pack tmp
|
||||||
|
@ -1 +1 @@
|
|||||||
See detailed tutorial at https://mongoose.ws/tutorials/captive-dns-portal/
|
See detailed tutorial at https://mongoose.ws/tutorials/captive-dns-server/
|
||||||
|
1
examples/captive-dns-server/mongoose.c
Symbolic link
1
examples/captive-dns-server/mongoose.c
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../mongoose.c
|
1
examples/captive-dns-server/mongoose.h
Symbolic link
1
examples/captive-dns-server/mongoose.h
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../mongoose.h
|
Loading…
Reference in New Issue
Block a user