mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-14 22:03:27 +01:00
20 lines
478 B
Makefile
20 lines
478 B
Makefile
-include config.mk
|
|
|
|
TARGET = ddraw.dll
|
|
LDFLAGS = -Wl,--enable-stdcall-fixup -s -static -shared
|
|
CFLAGS = -Iinc -O2 -march=i486 -Wall
|
|
LIBS = -lgdi32 -lwinmm -lpsapi -ldbghelp -lole32
|
|
|
|
CC = i686-w64-mingw32-gcc
|
|
WINDRES ?= i686-w64-mingw32-windres
|
|
|
|
.PHONY: clean all
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(wildcard src/*.c) $(wildcard src/*/*.c)
|
|
$(WINDRES) -J rc res.rc res.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ exports.def res.o $(LIBS)
|
|
|
|
clean:
|
|
$(RM) $(TARGET) res.o
|