1#  sunosMakefile for LinCity   (c)  I J Peters 1995,1996.
2# Thanks to sarum@softdisk.monosys.com (David Allan Finch)
3
4#  DO NOT INVOKE THIS FILE DIRECTLY, it is called from the Makefile.
5#  Edit the Makefile to point to where you want the binary and libraries
6#  to go. Then  'make clean', 'make solaris' and 'make install'.
7
8OPENWIN =     /usr/openwin
9CDE =         /usr/dt
10
11LC_XFLAGS =   -I$(OPENWIN)/include \
12              -I$(CDE)/include
13
14LIBS =        -L$(OPENWIN)/lib \
15              -L$(CDE)/lib \
16              -lXext -lX11 -lm
17
18OPTS =        -O3 -DSUNOS
19
20CFLAGS = $(OPTS) $(INCLUDES) -DLC_X11 -DLIBDIR=\"$(LC_LIBDIR)/\"
21
22.SUFFIXES: .cxx .o .h
23
24%.o:  %.cxx
25	gcc $(CFLAGS) -c $< $(LC_XFLAGS)
26
27SOURCE =      main.cxx \
28              mouse.cxx \
29              screen.cxx \
30              mps.cxx \
31              typeinit.cxx \
32              engine.cxx \
33              transport.cxx \
34              market.cxx \
35              help.cxx \
36              lcx11.cxx
37
38OBJECTS = $(SOURCE:.cxx=.o)
39
40all : $(OBJECTS)
41	gcc -o xlincity $(OBJECTS) $(LIBS)
42
43# You'll have to hack the top Makefile if you want to use purify
44# purify : $(OBJECTS)
45#	purify gcc -o xlincity $(OBJECTS) $(LIBS)
46
47#    --------  End of sunosMakefile for LinCity  -----------
48