Conscript (1219B)
1 # bspc compile 2 3 Import qw( BSPC_BASE_CFLAGS BUILD_DIR INSTALL_DIR CC CXX LINK ); 4 5 @BSPC_FILES = qw( 6 aas_areamerging.c 7 aas_cfg.c 8 aas_create.c 9 aas_edgemelting.c 10 aas_facemerging.c 11 aas_file.c 12 aas_gsubdiv.c 13 aas_map.c 14 aas_prunenodes.c 15 aas_store.c 16 be_aas_bspc.c 17 ../botlib/be_aas_bspq3.c 18 ../botlib/be_aas_cluster.c 19 ../botlib/be_aas_move.c 20 ../botlib/be_aas_optimize.c 21 ../botlib/be_aas_reach.c 22 ../botlib/be_aas_sample.c 23 brushbsp.c 24 bspc.c 25 ../qcommon/cm_load.c 26 ../qcommon/cm_patch.c 27 ../qcommon/cm_test.c 28 ../qcommon/cm_trace.c 29 csg.c 30 glfile.c 31 l_bsp_ent.c 32 l_bsp_hl.c 33 l_bsp_q1.c 34 l_bsp_q2.c 35 l_bsp_q3.c 36 l_bsp_sin.c 37 l_cmd.c 38 ../botlib/l_libvar.c 39 l_log.c 40 l_math.c 41 l_mem.c 42 l_poly.c 43 ../botlib/l_precomp.c 44 l_qfiles.c 45 ../botlib/l_script.c 46 ../botlib/l_struct.c 47 l_threads.c 48 l_utils.c 49 leakfile.c 50 map.c 51 map_hl.c 52 map_q1.c 53 map_q2.c 54 map_q3.c 55 map_sin.c 56 ../qcommon/md4.c 57 nodraw.c 58 portals.c 59 textures.c 60 tree.c 61 ../qcommon/unzip.c 62 ); 63 $BSPC_REF = \@BSPC_FILES; 64 65 $env = new cons( 66 CC => $CC, 67 CXX => $CXX, 68 LINK => $LINK, 69 CFLAGS => $BSPC_BASE_CFLAGS, 70 LIBS => '-ldl -lm -lpthread' 71 ); 72 73 Program $env 'bspc', @$BSPC_REF; 74 # this should install to Q3 or something? 75 Install $env $INSTALL_DIR, 'bspc';