comparison Makefile @ 5:d9914dd6ba6b

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 15 Mar 2013 05:01:37 +0200
parents 0e4f2da58161
children df40b5e4ca71
comparison
equal deleted inserted replaced
4:54361aa65b1f 5:d9914dd6ba6b
1 # mAKEFiLE fOR 3x666 bY oCSA 1 # mAKEFiLE fOR 3x666 bY oCSA
2
3 # Choose either vga or X11
4 VIDEO = X11
5
6 # 1 = /dev/dsp a.k.a OpenSoundSystem; 0 = nosound
7 AUDIO = 0
8
9 # Ok, next check out config.h!
10
11 ## ## ## ##
12 2
13 CC = gcc 3 CC = gcc
14 4
15 COPT = -O9 -funroll-loops -fomit-frame-pointer 5 CFLAGS = -O3 -march=
6 CFLAGS = -O3 -march=core2 -g -Wall `sdl-config --cflags`
7 LIBS = `sdl-config --libs` -lm
16 8
17 # If you prefer size to speed, use of the below COPTs: 9 3x666: 3x666.o
18 # i386 size 10 $(CC) -o $@ $+ $(LDFLAGS)
19 #COPT = -O2 -m386 -fomit-frame-pointer -malign-functions=0 -malign-loops=0 -malign-jumps=0
20 # generic size
21 #COPT = -O2
22 11
23 CFLAGS = -g -Wall -DVIDEO=$(VIDEO) -DAUDIO=$(AUDIO) 12 3x666.o: 3x666.c config.h 3xfont.h
24 LIBS = -l$(VIDEO) -lm 13 $(CC) $(CFLAGS) -c -o $@ $<
25
26 # You may want to check out if these dirs are right.
27 INCDIR =
28 LIBDIR = -L/usr/X11R6/lib
29
30 # These are for sun.
31 #INCDIR = -I/usr/openwin/include
32 #LIBDIR = -L/usr/openwin/lib
33
34 3x666: 3x666.o oxl.o
35 $(CC) 3x666.o oxl.o -s -o 3x666 $(LIBDIR) $(LIBS)
36
37 oxl.o: oxl.c config.h
38 $(CC) oxl.c -c -o oxl.o $(COPT) $(CFLAGS) $(INCDIR)
39
40 3x666.o: 3x666.c oxl.h config.h 3xfont.h
41 $(CC) 3x666.c -c -o 3x666.o $(COPT) $(CFLAGS) $(INCDIR)