Lines 1-15
Link Here
|
1 |
--- makefile.orig Fri Oct 3 15:11:05 2003 |
1 |
--- makefile.orig Sun Apr 18 18:02:24 2004 |
2 |
+++ makefile Sun Mar 28 17:15:39 2004 |
2 |
+++ makefile Mon Sep 19 20:44:29 2005 |
3 |
@@ -260,7 +260,7 @@ |
3 |
@@ -260,12 +260,10 @@ |
4 |
|
4 |
|
5 |
# gcc or g++ |
5 |
# gcc or g++ |
6 |
#CC=@gcc |
6 |
#CC=@gcc |
7 |
-CC=gcc |
7 |
-CC=gcc |
8 |
+CC?=gcc |
|
|
9 |
|
8 |
|
10 |
#if use PGCC or EGCS |
9 |
#if use PGCC or EGCS |
11 |
PGCC=1 |
10 |
PGCC=1 |
12 |
@@ -407,7 +407,8 @@ |
11 |
|
|
|
12 |
-WFLAGS=-Wall # -W -Wno-unused -Wno-sign-compare |
13 |
|
14 |
#uncomment if you want to use the POLL_POINTER hack |
15 |
#POLL_POINTER=-DPOLL_POINTER |
16 |
@@ -407,7 +405,8 @@ |
13 |
|
17 |
|
14 |
OPTS := $(OPTS) -DVID_X11 $(POLL_POINTER) -I. -I/usr/X11R6/include |
18 |
OPTS := $(OPTS) -DVID_X11 $(POLL_POINTER) -I. -I/usr/X11R6/include |
15 |
LDFLAGS=-L/usr/X11R6/lib |
19 |
LDFLAGS=-L/usr/X11R6/lib |
Lines 19-25
Link Here
|
19 |
# name of the exefile |
23 |
# name of the exefile |
20 |
EXENAME=llxdoom |
24 |
EXENAME=llxdoom |
21 |
SFLAGS=-g $(OPTS) |
25 |
SFLAGS=-g $(OPTS) |
22 |
@@ -428,7 +429,8 @@ |
26 |
@@ -418,7 +417,7 @@ |
|
|
27 |
else #ifdef X |
28 |
ifdef FBSD_SDL |
29 |
INTERFACE=sdl |
30 |
- OPTS := -DLINUX -DFREEBSD -DHWRENDER -DDIRECTFULLSCREEN -DHAVE_MIXER -DSDL -DVID_X11 $(POLL_POINTER) -I. -I/usr/local/include/SDL11 -I/usr/X11R6/include -Wall |
31 |
+ OPTS := -DLINUX -DFREEBSD -DHWRENDER -DDIRECTFULLSCREEN -DHAVE_MIXER -DSDL -DVID_X11 $(POLL_POINTER) -I. -I/usr/local/include/SDL11 -I/usr/X11R6/include |
32 |
SFLAGS=-g $(OPTS) |
33 |
OBJS=$(O)/i_video.o $(O)/dosstr.o $(O)/endtxt.o \ |
34 |
$(O)/hw_bsp.o $(O)/hw_draw.o $(O)/hw_light.o $(O)/hw_main.o \ |
35 |
@@ -428,7 +427,8 @@ |
23 |
DEBUGLIBS=$(LIBS) |
36 |
DEBUGLIBS=$(LIBS) |
24 |
|
37 |
|
25 |
LDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib |
38 |
LDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib |
Lines 29-65
Link Here
|
29 |
DEBUGLIBS=$(LIBS) |
42 |
DEBUGLIBS=$(LIBS) |
30 |
|
43 |
|
31 |
# name of the exefile |
44 |
# name of the exefile |
32 |
@@ -555,13 +557,13 @@ |
45 |
@@ -533,11 +533,7 @@ |
|
|
46 |
|
47 |
ifndef SOLARIS |
48 |
ifdef GCC30 |
49 |
- M5=-march=pentium |
50 |
- M4=-march=486 |
51 |
else |
52 |
- M5=-mpentium |
53 |
- M4=-m486 |
54 |
endif |
55 |
endif |
56 |
|
57 |
@@ -555,13 +551,13 @@ |
33 |
|
58 |
|
34 |
# build a normal optimised version |
59 |
# build a normal optimised version |
35 |
ifdef PGCC |
60 |
ifdef PGCC |
36 |
- CFLAGS = $(OPTS) $(M5) -O6 -ffast-math -fomit-frame-pointer -fwritable-strings |
61 |
- CFLAGS = $(OPTS) $(M5) -O6 -ffast-math -fomit-frame-pointer -fwritable-strings |
37 |
+ CFLAGS += $(OPTS) -fwritable-strings |
62 |
+ CFLAGS += $(OPTS) |
38 |
# -fgcse -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -ffunction-cse \ |
63 |
# -fgcse -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -ffunction-cse \ |
39 |
# -fexpensive-optimizations -fforce-mem -fstrength-reduce -fthread-jumps \ |
64 |
# -fexpensive-optimizations -fforce-mem -fstrength-reduce -fthread-jumps \ |
40 |
# -fregmove -fschedule-insns -fschedule-insns2 -fmove-all-movables \ |
65 |
# -fregmove -fschedule-insns -fschedule-insns2 -fmove-all-movables \ |
41 |
# -fcaller-saves -finline-functions -mieee-fp -mfp-ret-in-387 -m80387 -mhard-float -finline |
66 |
# -fcaller-saves -finline-functions -mieee-fp -mfp-ret-in-387 -m80387 -mhard-float -finline |
42 |
else |
67 |
else |
43 |
- CFLAGS = $(M4) -O3 -ffast-math -fomit-frame-pointer -fwritable-strings $(OPTS) |
68 |
- CFLAGS = $(M4) -O3 -ffast-math -fomit-frame-pointer -fwritable-strings $(OPTS) |
44 |
+ CFLAGS += -fwritable-strings $(OPTS) |
69 |
+ CFLAGS += $(OPTS) |
45 |
endif |
70 |
endif |
46 |
endif |
71 |
endif |
47 |
|
72 |
|
48 |
@@ -735,7 +737,7 @@ |
73 |
@@ -735,7 +731,7 @@ |
49 |
|
74 |
|
50 |
#dll |
75 |
#dll |
51 |
dll : $(O)/r_opengl.o $(O)/ogl_x11.o |
76 |
dll : $(O)/r_opengl.o $(O)/ogl_x11.o |
52 |
- $(CC) $(M5) -O6 -o $(BIN)/r_opengl.so -shared -nostartfiles $(O)/r_opengl.o $(O)/ogl_x11.o -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lGLU -lm |
77 |
- $(CC) $(M5) -O6 -o $(BIN)/r_opengl.so -shared -nostartfiles $(O)/r_opengl.o $(O)/ogl_x11.o -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lGLU -lm |
53 |
+ $(CC) ${CFLAGS} -o $(BIN)/r_opengl.so -shared -nostartfiles $(O)/r_opengl.o $(O)/ogl_x11.o -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lGLU -lm |
78 |
+ $(CC) $(CFLAGS) -o $(BIN)/r_opengl.so -shared -nostartfiles $(O)/r_opengl.o $(O)/ogl_x11.o -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lGLU -lm |
54 |
|
79 |
|
55 |
musserv: |
80 |
musserv: |
56 |
@mkdir -p $(MUSSERV)/linux |
81 |
@mkdir -p $(MUSSERV)/linux |
57 |
@@ -763,7 +765,7 @@ |
82 |
@@ -760,7 +756,7 @@ |
58 |
$(CC) $(CFLAGS) $(LDFLAGS) $(WFLAGS) -I/usr/X11R6/include -c $< -o $@ |
83 |
ifdef FREEBSD |
|
|
84 |
ifdef FBSD_SDL |
85 |
$(O)/r_opengl.o: hardware/r_opengl/r_opengl.c hardware/r_opengl/r_opengl.h |
86 |
- $(CC) $(CFLAGS) $(LDFLAGS) $(WFLAGS) -I/usr/X11R6/include -c $< -o $@ |
87 |
+ $(CC) -fPIC $(CFLAGS) $(LDFLAGS) $(WFLAGS) -I/usr/X11R6/include -c $< -o $@ |
59 |
else #FBSD_SDL |
88 |
else #FBSD_SDL |
60 |
$(O)/r_opengl.o: hardware/r_opengl/r_opengl.c hardware/r_opengl/r_opengl.h |
89 |
$(O)/r_opengl.o: hardware/r_opengl/r_opengl.c hardware/r_opengl/r_opengl.h |
61 |
- $(CC) $(M5) -O6 -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c |
90 |
$(CC) $(M5) -O6 -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c |
62 |
+ $(CC) ${CFLAGS} -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c |
91 |
@@ -777,7 +773,7 @@ |
63 |
endif #FBSD_SDL |
92 |
$(CC) $(M5) -O6 -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c |
64 |
endif #FREEBSD |
93 |
else |
|
|
94 |
$(O)/ogl_x11.o: hardware/r_opengl/ogl_x11.c hardware/r_opengl/r_opengl.h |
95 |
- $(CC) $(M5) -O6 -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c |
96 |
+ $(CC) -fPIC $(CFLAGS) -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c |
97 |
endif |
98 |
|
65 |
|
99 |
|