-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 loc) · 1011 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
CC = CL
LD = LINK
HHC = "C:\Program Files\Help Workshop\hhc.exe"
SDLDIR = "E:/Source/SDK/SDL"
CRTDIR = "C:/Program Files/Microsoft Visual Studio 9.0/VC"
WINSDK = "C:/Program Files/Microsoft SDKs/Windows/v6.0A"
FIDIR = "E:/Source/SDK/FreeImage"
S = "./src"
O = "./obj"
CLFLAGS = /DFGF_DLL /I$(SDLDIR)\include /I$(CRTDIR)/Include /I$(WINSDK)/include /I$(FIDIR) /c /EHsc /MD /Ox
LINKFLAGS = /LIBPATH:$(CRTDIR)/Lib /LIBPATH:$(WINSDK)/Lib /LIBPATH:$(SDLDIR)/lib /LIBPATH:$(FIDIR) /DLL
LIB = OpenGL32.lib GLU32.lib Kernel32.lib SDL.lib SDL_mixer.lib FreeImage.lib
OBJ = $O/*.obj
SRC = $S/*.cpp
prepare:
IF NOT EXIST obj mkdir obj
IF NOT EXIST lib mkdir lib
compile: prepare
$(CC) $(CLFLAGS) $(SRC) /Fo./obj/
link: compile
$(LD) $(LINKFLAGS) $(OBJ) $(LIB) /OUT:./lib/Fulcrum.dll /IMPLIB:./lib/Fulcrum.lib
clean:
del obj /Q
rmdir obj
del lib /Q
rmdir lib
del docs /Q
rmdir docs
docs:
doxygen
cd docs/html
mkdir docs
$(HHC) index.hhp
dist: prepare compile link docs
all: prepare compile link