forked from FunkyFr3sh/cnc-ddraw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (49 loc) · 1.84 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-include config.mk
WINDRES ?= windres
LDFLAGS = -Iinc -Wall -Wl,--enable-stdcall-fixup -s
CFLAGS = -std=c99 -O2 -march=i486
LIBS = -lgdi32 -lwinmm -lpsapi -ldbghelp -lole32
FILES = src/IDirect3D/IDirect3D.c \
src/IDirect3D/IDirect3D2.c \
src/IDirect3D/IDirect3D3.c \
src/IDirect3D/IDirect3D7.c \
src/IDirectDraw/IDirectDraw.c \
src/IDirectDraw/IDirectDrawPalette.c \
src/IDirectDraw/IDirectDrawClipper.c \
src/IDirectDraw/IDirectDrawSurface.c \
src/IDirectDraw/IDirectDrawGammaControl.c \
src/IAMMediaStream/IAMMediaStream.c \
src/crc32.c \
src/blt.c \
src/dd.c \
src/ddpalette.c \
src/ddsurface.c \
src/ddclipper.c \
src/render_ogl.c \
src/render_gdi.c \
src/render_d3d9.c \
src/debug.c \
src/mouse.c \
src/winapi_hooks.c \
src/screenshot.c \
src/config.c \
src/lodepng.c \
src/directinput.c \
src/hook.c \
src/dllmain.c \
src/wndproc.c \
src/utils.c \
src/fps_limiter.c \
src/opengl_utils.c
all:
$(info )
$(info **********************************************************************************************)
$(info WARNING: This build is outdated and does not support all cnc-ddraw features [Detours/SEH])
$(info WARNING: Some games that require hooks may crash or glitch, please use the msvc build instead)
$(info **********************************************************************************************)
$(info )
$(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