Last change
on this file was 186, checked in by Silvan Scherrer, 8 years ago |
SMPlayer: update vendor to 17.1.0
|
File size:
462 bytes
|
Line | |
---|
1 | PROG = simple_web_server
|
---|
2 | MODULE_CFLAGS=-DMG_DISABLE_DAV_AUTH -DMG_ENABLE_HTTP_CGI=0 -DMG_ENABLE_THREADS=0
|
---|
3 |
|
---|
4 | SOURCES = main.c mongoose.c
|
---|
5 | CFLAGS = -O2 -W -Wall -Werror -Wno-unused-function $(CFLAGS_EXTRA) $(MODULE_CFLAGS)
|
---|
6 |
|
---|
7 | ifeq ($(OS), Windows_NT)
|
---|
8 | CFLAGS += -lws2_32
|
---|
9 | CC = gcc
|
---|
10 | DEL_FILE = del
|
---|
11 | PROG := $(PROG).exe
|
---|
12 | else
|
---|
13 | CFLAGS += -pthread
|
---|
14 | DEL_FILE = rm -f
|
---|
15 | endif
|
---|
16 |
|
---|
17 | all: $(PROG)
|
---|
18 |
|
---|
19 | $(PROG): $(SOURCES) Makefile
|
---|
20 | $(CC) $(SOURCES) -o $@ $(CFLAGS)
|
---|
21 |
|
---|
22 | clean:
|
---|
23 | $(DEL_FILE) $(PROG)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.