-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.Sun
66 lines (50 loc) · 1.78 KB
/
Makefile.Sun
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
57
58
59
60
61
62
63
64
65
66
#
# ssystem 1.6 Makefile for Sun SPARCompiler
#
# Contributed by Elias Martenson <elias.martenson@sweden.sun.com>
#
# Where the jpeg libraries are located
JPEGLIB_INCLUDE = -I/usr/local/jpeg-6b
JPEGLIB_LIB = -L/usr/local/jpeg-6b
# Where the GLUT libraries are located
GLUT_INCLUDE = -I/usr/local/glut-3.7/include
GLUT_LIB = -L/usr/local/glut-3.7/lib
#ssystem data directory
SDATADIR=.
CC = cc -fast
CFLAGS = -xCC $(JPEGLIB_INCLUDE) $(GLUT_INCLUDE) -DSDATADIR=\"$(SDATADIR)\"
LDFLAGS= $(JPEGLIB_LIB) $(GLUT_LIB) -ljpeg -lglut -lGLU -lGL -lXext -lXmu -lX11 -lm
OBJ = cfgparse.tab.o lex.cfg.o ssystem.o init.o positions.o joystick.o \
cmdline.o keyboard.o mouse.o scrnsht.o sun.o timer.o util.o astrolib.o \
jpeg.o stars.o
LIBS =
all: ssystem
clean:
rm -f *.o *~ ssystem .depend cfgparse.tab.* cfgparse.output lex.cfg.c
ssystem: $(OBJ)
$(CC) -o ssystem $(OBJ) $(LDFLAGS) $(LIBS)
lex.cfg.c: cfglex.l cfgparse.tab.c
flex -i -Pcfg cfglex.l
cfgparse.tab.c: cfgparse.y
bison -d -v -p cfg cfgparse.y
.c.o:
$(CC) -c $(CFLAGS) $<
dep:
gcc -MM $(JPEGLIB_INCLUDE) $(GLUT_INCLUDE) *.c > .depend
# DO NOT DELETE
astrolib.o: astrolib.c vsop87.dat
cfgparse.tab.o: cfgparse.tab.c ssystem.h
cmdline.o: cmdline.c ssystem.h cfgparse.tab.h
init.o: init.c ssystem.h cfgparse.tab.h
joystick.o: joystick.c ssystem.h cfgparse.tab.h
jpeg.o: jpeg.c ssystem.h cfgparse.tab.h
keyboard.o: keyboard.c ssystem.h cfgparse.tab.h
lex.cfg.o: lex.cfg.c ssystem.h cfgparse.tab.h
mouse.o: mouse.c ssystem.h cfgparse.tab.h
positions.o: positions.c ssystem.h cfgparse.tab.h
scrnsht.o: scrnsht.c ssystem.h cfgparse.tab.h
ssystem.o: ssystem.c ssystem.h cfgparse.tab.h
stars.o: stars.c ssystem.h cfgparse.tab.h
sun.o: sun.c ssystem.h cfgparse.tab.h
timer.o: timer.c ssystem.h cfgparse.tab.h
util.o: util.c ssystem.h cfgparse.tab.h