source: smplayer/trunk/webserver/Makefile

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 
1PROG = simple_web_server
2MODULE_CFLAGS=-DMG_DISABLE_DAV_AUTH -DMG_ENABLE_HTTP_CGI=0 -DMG_ENABLE_THREADS=0
3
4SOURCES = main.c mongoose.c
5CFLAGS = -O2 -W -Wall -Werror -Wno-unused-function $(CFLAGS_EXTRA) $(MODULE_CFLAGS)
6
7ifeq ($(OS), Windows_NT)
8CFLAGS += -lws2_32
9CC = gcc
10DEL_FILE = del
11PROG := $(PROG).exe
12else
13CFLAGS += -pthread
14DEL_FILE = rm -f
15endif
16
17all: $(PROG)
18
19$(PROG): $(SOURCES) Makefile
20 $(CC) $(SOURCES) -o $@ $(CFLAGS)
21
22clean:
23 $(DEL_FILE) $(PROG)
Note: See TracBrowser for help on using the repository browser.