Debian Codegraph @

terps/glulxe/Makefile

raw symbols SCIP
1 # Unix Makefile for Glulxe.
2
3 # To use this, you must set three variables. GLKINCLUDEDIR must be the
4 # directory containing glk.h, glkstart.h, and the Make.library file.
5 # GLKLIBDIR must be the directory containing the library.a file.
6 # And GLKMAKEFILE must be the name of the Make.library file. Two
7 # sets of values appear below; uncomment one of them and change the
8 # directories appropriately.
9
10 GLKINCLUDEDIR = ../cheapglk
11 GLKLIBDIR = ../cheapglk
12 GLKMAKEFILE = Make.cheapglk
13
14 #GLKINCLUDEDIR = ../glkterm
15 #GLKLIBDIR = ../glkterm
16 #GLKMAKEFILE = Make.glkterm
17
18 #GLKINCLUDEDIR = ../xglk
19 #GLKLIBDIR = ../xglk
20 #GLKMAKEFILE = Make.xglk
21
22 #GLKINCLUDEDIR = ../remglk
23 #GLKLIBDIR = ../remglk
24 #GLKMAKEFILE = Make.remglk
25
26 #GLKINCLUDEDIR = ../gtkglk/src
27 #GLKLIBDIR = ../gtkglk
28 #GLKMAKEFILE = ../Make.gtkglk
29
30 # Also set an appropriate OS config in OPTIONS, below.
31 # -DOS_MAC for MacOS
32 # -DOS_WINDOWS for Windows
33 # -DOS_UNIX for Unix/Linux
34 # For OS_UNIX, you probably also want to set a random number generator
35 # option. These are unfortunately not very standardized across Unixes.
36 # We recommend -DUNIX_RAND_GETRANDOM on Linux and -DUNIX_RAND_ARC4
37 # on NetBSD.
38 # (MacOS always uses ARC4, in case you were wondering.)
39
40 # Pick a C compiler.
41 CC = cc
42 #CC = gcc
43
44 OPTIONS = -g -Wall -Wmissing-prototypes -Wno-unused -DOS_MAC
45
46 # Locate the libxml2 library. You only need these lines if you are using
47 # the VM_DEBUGGER option. If so, uncomment these and set appropriately.
48 #XMLLIB = -L/usr/local/lib -lxml2
49 #XMLLIBINCLUDEDIR = -I/usr/local/include/libxml2
50
51 include $(GLKINCLUDEDIR)/$(GLKMAKEFILE)
52
53 CFLAGS = $(OPTIONS) -I$(GLKINCLUDEDIR) $(XMLLIBINCLUDEDIR)
54 LIBS = -L$(GLKLIBDIR) $(GLKLIB) $(LINKLIBS) -lm $(XMLLIB)
55
56 OBJS = main.o files.o vm.o exec.o funcs.o operand.o string.o glkop.o \
57 heap.o serial.o search.o accel.o float.o gestalt.o osdepend.o \
58 profile.o debugger.o
59
60 all: glulxe
61
62 glulxe: $(OBJS) unixstrt.o unixautosave.o
63 $(CC) $(OPTIONS) -o glulxe $(OBJS) unixstrt.o unixautosave.o $(LIBS)
64
65 glulxdump: glulxdump.o
66 $(CC) -o glulxdump glulxdump.o
67
68 $(OBJS) unixstrt.o unixautosave.o: glulxe.h unixstrt.h
69
70 exec.o operand.o: opcodes.h
71 gestalt.o: gestalt.h
72
73 clean:
74 rm -f *~ *.o glulxe glulxdump profile-raw
75