mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 20:10:56 +00:00
78 lines
2.4 KiB
Makefile
78 lines
2.4 KiB
Makefile
|
|
||
|
CFLAGS = -c
|
||
|
LDFLAGS =
|
||
|
ODIR = baddir
|
||
|
|
||
|
EXEBASE = qrad3
|
||
|
EXE = $(ODIR)/qrad3
|
||
|
all: $(EXE)
|
||
|
|
||
|
_next:
|
||
|
make "CFLAGS = -c -g -I../../common" "ODIR = next"
|
||
|
|
||
|
_irix:
|
||
|
make "CFLAGS = -c -Ofast=ip32_10k -I../../common -Xcpluscomm" "LDFLAGS = -Ofast=ip32_10k" "ODIR = irix"
|
||
|
|
||
|
_irixdebug:
|
||
|
make "CFLAGS = -c -g -I../../common -Xcpluscomm" "LDFLAGS = " "ODIR = irix"
|
||
|
|
||
|
_irixinst:
|
||
|
make "CFLAGS = -c -Ofast=ip32_10k -I../../common -Xcpluscomm" "LDFLAGS = -Ofast=ip32_10k" "ODIR = irix"
|
||
|
cp irix/$(EXEBASE) /limbo/quake2/bin_irix
|
||
|
|
||
|
_irixclean:
|
||
|
rm -f irix/*.o irix/$(EXEBASE)
|
||
|
|
||
|
_osf:
|
||
|
make "CFLAGS = -c -O4 -I../../common -threads" "LDFLAGS = -threads" "ODIR = osf"
|
||
|
|
||
|
clean:
|
||
|
rm -f irix/*.o irix/$(EXEBASE)
|
||
|
|
||
|
install:
|
||
|
cp irix/$(EXEBASE) /limbo/quake2/bin_irix
|
||
|
|
||
|
|
||
|
FILES = $(ODIR)/bspfile.o $(ODIR)/cmdlib.o $(ODIR)/lbmlib.o $(ODIR)/mathlib.o $(ODIR)/scriplib.o $(ODIR)/polylib.o $(ODIR)/qrad3.o $(ODIR)/threads.o $(ODIR)/trace.o $(ODIR)/lightmap.o $(ODIR)/patches.o
|
||
|
|
||
|
$(EXE) : $(FILES)
|
||
|
cc -o $(EXE) $(LDFLAGS) $(FILES) -lm
|
||
|
|
||
|
$(ODIR)/qrad3.o : qrad3.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/patches.o : patches.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/trace.o : trace.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/vismat.o : vismat.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/lightmap.o : lightmap.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
|
||
|
$(ODIR)/cmdlib.o : ../../common/cmdlib.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/lbmlib.o : ../../common/lbmlib.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/mathlib.o : ../../common/mathlib.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/polylib.o : ../../common/polylib.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/scriplib.o : ../../common/scriplib.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/threads.o : ../../common/threads.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|
||
|
$(ODIR)/bspfile.o : ../../common/bspfile.c
|
||
|
cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
|
||
|
cc $(CFLAGS) -o $@ /tmp/temp.i
|