Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

Makefile (2260B)


      1 #
      2 # Makefile for the BSPC tool for the Gladiator Bot
      3 # Intended for gcc/Linux
      4 #
      5 # TTimo 5/15/2001
      6 # some cleanup .. only used on i386 for GtkRadiant setups AFAIK .. removing the i386 tag
      7 # TODO: the intermediate object files should go into their own directory
      8 #   specially for ../botlib and ../qcommon, the compilation flags on those might not be what you expect
      9 
     10 #ARCH=i386
     11 CC=gcc
     12 BASE_CFLAGS=-Dstricmp=strcasecmp
     13 
     14 #use these cflags to optimize it
     15 CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
     16 	-fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
     17 	-malign-jumps=2 -malign-functions=2 -DLINUX -DBSPC
     18 #use these when debugging 
     19 #CFLAGS=$(BASE_CFLAGS) -g
     20 
     21 LDFLAGS=-ldl -lm -lpthread
     22 
     23 DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
     24 
     25 #############################################################################
     26 # SETUP AND BUILD BSPC
     27 #############################################################################
     28 
     29 .c.o:
     30 	$(DO_CC)
     31 
     32 GAME_OBJS = \
     33 	_files.o\
     34 	aas_areamerging.o\
     35 	aas_cfg.o\
     36 	aas_create.o\
     37 	aas_edgemelting.o\
     38 	aas_facemerging.o\
     39 	aas_file.o\
     40 	aas_gsubdiv.o\
     41 	aas_map.o\
     42 	aas_prunenodes.o\
     43 	aas_store.o\
     44 	be_aas_bspc.o\
     45 	../botlib/be_aas_bspq3.o\
     46 	../botlib/be_aas_cluster.o\
     47 	../botlib/be_aas_move.o\
     48 	../botlib/be_aas_optimize.o\
     49 	../botlib/be_aas_reach.o\
     50 	../botlib/be_aas_sample.o\
     51 	brushbsp.o\
     52 	bspc.o\
     53 	../qcommon/cm_load.o\
     54 	../qcommon/cm_patch.o\
     55 	../qcommon/cm_test.o\
     56 	../qcommon/cm_trace.o\
     57 	csg.o\
     58 	glfile.o\
     59 	l_bsp_ent.o\
     60 	l_bsp_hl.o\
     61 	l_bsp_q1.o\
     62 	l_bsp_q2.o\
     63 	l_bsp_q3.o\
     64 	l_bsp_sin.o\
     65 	l_cmd.o\
     66 	../botlib/l_libvar.o\
     67 	l_log.o\
     68 	l_math.o\
     69 	l_mem.o\
     70 	l_poly.o\
     71 	../botlib/l_precomp.o\
     72 	l_qfiles.o\
     73 	../botlib/l_script.o\
     74 	../botlib/l_struct.o\
     75 	l_threads.o\
     76 	l_utils.o\
     77 	leakfile.o\
     78 	map.o\
     79 	map_hl.o\
     80 	map_q1.o\
     81 	map_q2.o\
     82 	map_q3.o\
     83 	map_sin.o\
     84 	../qcommon/md4.o\
     85 	nodraw.o\
     86 	portals.o\
     87 	textures.o\
     88 	tree.o\
     89 	../qcommon/unzip.o
     90 
     91         #tetrahedron.o
     92 
     93 bspc : $(GAME_OBJS)
     94 	$(CC) $(CFLAGS) -o $@ $(GAME_OBJS) $(LDFLAGS)
     95 	strip $@
     96 
     97 
     98 #############################################################################
     99 # MISC
    100 #############################################################################
    101 
    102 clean:
    103 	-rm -f $(GAME_OBJS)
    104 
    105 depend:
    106 	gcc -MM $(GAME_OBJS:.o=.c)
    107 
    108 #install:
    109 #	cp bspci386 ..
    110 
    111 #
    112 # From "make depend"
    113 #
    114