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
|
--- Makefile.orig Sat Jan 6 22:36:06 2001
+++ Makefile Sun Jan 7 06:15:55 2001
@@ -12,7 +12,7 @@
#use multi-thread
#OS must be Linux with libc6, FreeBSD-4.0R with linuxthreads or BeOS
-USE_MT=yes
+#USE_MT=yes
#define if OS is BeOS
#OS=BeOS
@@ -30,15 +30,15 @@
endif
# common definition
-LD=gcc
+LD=$(CC)
#LD=gcc -Wl,-Map,gogo.map
LIBS=-lm
-CC=gcc -c -m486 -O3 -finline-functions -fomit-frame-pointer -funroll-loops
+#CC=gcc -c -m486 -O3 -finline-functions -fomit-frame-pointer -funroll-loops
# This option is available for gcc-2.8.x
#CC=gcc -c -mcpu=pentiumpro -malign-double -O6 -fstrength-reduce -fexpensive-optimizations -finline-functions -fomit-frame-pointer -funroll-loops
# This option is available for gcc-2.95.1, gcc-2.95.2, gcc-2.95.3,... on P6 or later
#CC=gcc -c -mcpu=pentiumpro -march=pentiumpro -O9 -fstrength-reduce -fexpensive-optimizations -finline-functions -fomit-frame-pointer -funroll-loops -ffast-math -foptimize-register-move -fdefer-pop -mfancy-math-387
-CFLAGS=-Wall $(PROF) -DNDEBUG $(E3DN) $(VBR) -DRAW_INPUT
+CFLAGS+=-Wall $(PROF) -DNDEBUG $(E3DN) $(VBR) -DRAW_INPUT
# OS specific definition
@@ -62,8 +62,8 @@
ifeq ($(OS),FreeBSD)
CFLAGS+= -DDISPLAY_REALTIME
ifeq ($(USE_MT),yes)
- LIBS+= -L/usr/local/lib -llthread -llgcc_r
- CFLAGS+= -DUSE_PTHREAD -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads
+ LIBS+= -L${LOCALBASE}/lib -llthread -llgcc_r
+ CFLAGS+= -DUSE_PTHREAD -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
endif
endif
ifeq ($(OS),OpenBSD)
@@ -110,7 +110,7 @@
# $(AS) $(ASFLAGS) $< -o $@
.c.o:
- $(CC) $(CFLAGS) $<
+ $(CC) -c $(CFLAGS) $<
clean:
|