-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmakefile.dos
More file actions
56 lines (42 loc) · 1.47 KB
/
makefile.dos
File metadata and controls
56 lines (42 loc) · 1.47 KB
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
54
55
56
CC=gcc
# Comment these out to disable PNG output if no PNG lib is available.
#
#PNG_FLAGS=-DUSE_PNG
#PNG_LIBS=-L. -lpng -lz
# Comment these out to disable tile rendering option.
#
#TR_FLAGS=-DTILE_RENDER_OPTION
#TR_SRC=tr.c
# Comment these out to disable the test GUI made with MUI.
#
#GUI_FLAGS=-DTEST_MUI_GUI
#GUI_SRC=ldglgui.c
#GUI_LIBS=-lmui
CFLAGS=-ggdb -DUNIX -DAGL -DUSE_GLFONT -DUSE_OPENGL -DUSE_L3_PARSER -DNEED_MIN_MAX $(PNG_FLAGS) $(TR_FLAGS) $(GUI_FLAGS)
## This is lame. I don't know how to do both .c and .cpp for the OBJS line
## so I pretend L3*.cpp is L3*.c and make rules for them later.
#
SRCS = ldliteVR_main.c platform.c dirscan.c gleps.c camera.c f00QuatC.c stub.c lcolors.c y.tab.c lex.yy.c qbuf.c main.c ldglpr.c glfont.c L3Edit.c L3Math.c L3Input.c L3View.c $(TR_SRC)
OBJS = $(SRCS:.c=.o)
all : ldglite
# added -lemu to allow 387 emulation on my lame 386sx.
# the alternative is to distribute emu387.dxe and set environment:
# SET 387=N
# SET emu387=C:\path\emu387.dxe
ldglite: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o ldglite.exe $(PNG_LIBS) $(GUI_LIBS) -lGLUT -lGLU -lGL -lagl -lalleg -lemu
cp ldglite.exe l3glite.exe
cp ldglite.exe l3gledit.exe
l3glite: ldglite
ldglitepng: ldglite
l3glitepng: ldglite
## This is lame. I don't know how to do both .c and .cpp for the OBJS line.
#
L3Math.o: L3Math.cpp
$(CC) -c $(CFLAGS) L3Math.cpp
L3Input.o: L3Input.cpp
$(CC) -c $(CFLAGS) L3Input.cpp
L3View.o: L3View.cpp
$(CC) -c $(CFLAGS) L3View.cpp
clean:
rm *.o