1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00
cnc-ddraw/Makefile

24 lines
532 B
Makefile
Raw Normal View History

2019-04-08 04:16:20 +02:00
-include config.mk
2024-04-25 00:57:54 +02:00
TARGET = ddraw.dll
LDFLAGS = -Wl,--enable-stdcall-fixup -s -static -shared
2024-03-15 17:07:40 +01:00
CFLAGS = -Iinc -O2 -march=i486 -Wall
2021-08-12 00:38:10 +02:00
LIBS = -lgdi32 -lwinmm -lpsapi -ldbghelp -lole32
2018-08-03 03:37:23 +02:00
2024-04-25 00:57:54 +02:00
CC = i686-w64-mingw32-gcc
WINDRES ?= i686-w64-mingw32-windres
2024-04-26 01:41:38 +02:00
ifdef DEBUG
CFLAGS += -D _DEBUG -D _DEBUG_X
endif
2024-04-25 00:57:54 +02:00
.PHONY: clean all
all: $(TARGET)
2017-11-16 19:19:17 +01:00
2024-04-25 00:57:54 +02:00
$(TARGET): $(wildcard src/*.c) $(wildcard src/*/*.c)
$(WINDRES) -J rc res.rc res.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ exports.def res.o $(LIBS)
2010-10-10 19:41:47 +03:00
clean:
2024-04-25 00:57:54 +02:00
$(RM) $(TARGET) res.o