aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/makefile
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-04 01:21:34 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-04 01:21:34 +0000
commit45d6a88841f0db650d615522b1f6594ea72ceb7e (patch)
treedec4fac8ff8638b6a0d8749d52e66d0207eb161b /lcc/makefile
parent6d9be1722b2221cae39b389ce218e93d73d99335 (diff)
downloadioquake3-aero-45d6a88841f0db650d615522b1f6594ea72ceb7e.tar.gz
ioquake3-aero-45d6a88841f0db650d615522b1f6594ea72ceb7e.zip
* Dewarninged the lcc and q3asm source
* Removed traditional target platforms from the lcc build. This might break building lcc on Windows using nmake. Submit patches or be quiet :p * Default target for lcc is now bytecode, so -Wf-target=bytecode is no longer needed on the lcc command line git-svn-id: svn://svn.icculus.org/quake3/trunk@132 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'lcc/makefile')
-rw-r--r--lcc/makefile29
1 files changed, 13 insertions, 16 deletions
diff --git a/lcc/makefile b/lcc/makefile
index 96c54d5..c496406 100644
--- a/lcc/makefile
+++ b/lcc/makefile
@@ -5,7 +5,7 @@ A=.a
O=.o
E=
CC=cc
-CFLAGS=-g -Wall
+CFLAGS=-O2 -Wall -fno-strict-aliasing
LDFLAGS=
LD=cc
AR=ar ruv
@@ -13,9 +13,8 @@ RANLIB=ranlib
DIFF=diff
RM=rm -f
RMDIR=rmdir
+BUILDDIR=build
TSTDIR=$(BUILDDIR)/$(TARGET)/tst
-CUSTOM=custom.mk
-include $(CUSTOM)
B=$(BUILDDIR)/
T=$(TSTDIR)/
@@ -24,14 +23,18 @@ T=$(TSTDIR)/
what:
-@echo make all q3rcc lburg q3cpp q3lcc bprint liblcc triple clean clobber
+makedirs:
+ @if [ ! -d $(B) ];then mkdir $(B);fi
+ @if [ ! -d $(T) ];then mkdir $(T);fi
+
all:: q3rcc lburg q3cpp q3lcc bprint liblcc
-q3rcc: $Bq3rcc$E
-lburg: $Blburg$E
-q3cpp: $Bq3cpp$E
-q3lcc: $Bq3lcc$E
-bprint: $Bbprint$E
-liblcc: $Bliblcc$A
+q3rcc: makedirs $Bq3rcc$E
+lburg: makedirs $Blburg$E
+q3cpp: makedirs $Bq3cpp$E
+q3lcc: makedirs $Bq3lcc$E
+bprint: makedirs $Bbprint$E
+liblcc: makedirs $Bliblcc$A
RCCOBJS=$Balloc$O \
$Bbind$O \
@@ -61,13 +64,7 @@ RCCOBJS=$Balloc$O \
$Bnull$O \
$Bsymbolic$O \
$Bgen$O \
- $Bbytecode$O \
- $Balpha$O \
- $Bmips$O \
- $Bsparc$O \
- $Bstab$O \
- $Bx86$O \
- $Bx86linux$O
+ $Bbytecode$O
$Bq3rcc$E:: $Bmain$O $Blibrcc$A $(EXTRAOBJS)
$(LD) $(LDFLAGS) -o $@ $Bmain$O $(EXTRAOBJS) $Blibrcc$A $(EXTRALIBS)