forked from FunkyFr3sh/cnc-ddraw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (26 loc) · 795 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-include config.mk
WINDRES ?= windres
LDFLAGS = -Iinc -Wall -Wl,--enable-stdcall-fixup -s
CFLAGS = -std=c99
LIBS = -lgdi32 -lwinmm
FILES = src/debug.c \
src/main.c \
src/mouse.c \
src/palette.c \
src/surface.c \
src/clipper.c \
src/render.c \
src/render_soft.c \
src/render_d3d9.c \
src/screenshot.c \
src/settings.c \
src/lodepng.c \
src/dinput.c \
src/hook.c \
src/opengl.c
all:
$(WINDRES) -J rc ddraw.rc ddraw.rc.o
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ddraw.dll $(FILES) ddraw.def ddraw.rc.o $(LIBS)
# $(CC) $(CFLAGS) $(LDFLAGS) -nostdlib -shared -o ddraw.dll $(FILES) ddraw.def ddraw.rc.o $(LIBS) -lkernel32 -luser32 -lmsvcrt
clean:
$(RM) ddraw.dll ddraw.rc.o