UI for Win32

This commit is contained in:
cpq committed 2021-01-13 03:07:51 +00:00
1 parent facb2846fd
commit 83c106a857
5 files changed
+191 -20

No files matched your search

+5 -4
View File
@@ -2,8 +2,8 @@ PROG ?= example
ROOT ?= $(realpath $(CURDIR)/../..)
DEFS ?= -DMG_ENABLE_LINES=1 -DMG_ENABLE_DIRECTORY_LISTING=1 -DMG_ENABLE_SSI=1
CFLAGS ?= -I../.. -W -Wall -DMG_ENABLE_IPV6=1 $(DEFS) $(EXTRA)
VCFLAGS = /nologo /W3 /O2 /I../.. $(DEFS) $(EXTRA)
VC98 = docker run --rm -e WINEDEBUG=-all -v $(ROOT):$(ROOT) -w $(CURDIR) docker.io/mdashnet/vc98
VCFLAGS = /nologo /W3 /O2 /I../.. $(DEFS) $(EXTRA) /link /incremental:no /machine:IX86
VC98 = docker run --rm -e Tmp=. -v $(ROOT):$(ROOT) -w $(CURDIR) docker.io/mdashnet/vc98
GCC = docker run --rm -v $(ROOT):$(ROOT) -w $(CURDIR) mdashnet/cc2
all: $(PROG)
@@ -16,10 +16,11 @@ mongoose_mac: $(PROG)
cp $(PROG) $@
mongoose_linux: main.c
$(GCC) $(CC) ../../mongoose.c main.c $(CFLAGS) -o $@
$(GCC) $(CC) ../../mongoose.c main.c $(CFLAGS) -s -static -o $@
mongoose.exe: main.c
$(VC98) wine cl ../../mongoose.c main.c $(VCFLAGS) ws2_32.lib /Fe$@
$(VC98) wine rc /fomongoose.res win32/res.rc
$(VC98) wine cl ../../mongoose.c main.c $(VCFLAGS) mongoose.res shell32.lib ws2_32.lib user32.lib /out:$@
zip: mongoose.exe mongoose_linux mongoose_mac
rm -rf mongoose; mkdir mongoose