Index: code/tools/lcc/etc/bytecode.c =================================================================== --- code/tools/lcc/etc/bytecode.c (revision 1489) +++ code/tools/lcc/etc/bytecode.c (working copy) @@ -12,8 +12,7 @@ char *suffixes[] = { ".c", ".i", ".asm", ".o", ".out", 0 }; char inputs[256] = ""; -char *cpp[] = { "q3cpp" BINEXT, - "-D__STDC__=1", "-D__STRICT_ANSI__", "-D__signed__=signed", "-DQ3_VM", +char *cpp[] = { "cpp", "-undef", "-DQ3_VM", "$1", "$2", "$3", 0 }; char *include[] = { 0 }; char *com[] = { "q3rcc" BINEXT, "-target=bytecode", "$1", "$2", "$3", 0 }; @@ -26,7 +25,7 @@ =============== UpdatePaths -Updates the paths to q3cpp and q3rcc based on +Updates the path to q3rcc based on the directory that contains q3lcc =============== */ @@ -42,14 +41,12 @@ { *( p + 1 ) = '\0'; - cpp[ 0 ] = concat( basepath, "q3cpp" BINEXT ); com[ 0 ] = concat( basepath, "q3rcc" BINEXT ); } } int option(char *arg) { if (strncmp(arg, "-lccdir=", 8) == 0) { - cpp[0] = concat(&arg[8], "/q3cpp" BINEXT); include[0] = concat("-I", concat(&arg[8], "/include")); com[0] = concat(&arg[8], "/q3rcc" BINEXT); } else if (strcmp(arg, "-p") == 0 || strcmp(arg, "-pg") == 0) { Index: Makefile =================================================================== --- Makefile (revision 1489) +++ Makefile (working copy) @@ -168,7 +168,6 @@ SPEEXDIR=$(MOUNT_DIR)/libspeex Q3ASMDIR=$(MOUNT_DIR)/tools/asm LBURGDIR=$(MOUNT_DIR)/tools/lcc/lburg -Q3CPPDIR=$(MOUNT_DIR)/tools/lcc/cpp Q3LCCETCDIR=$(MOUNT_DIR)/tools/lcc/etc Q3LCCSRCDIR=$(MOUNT_DIR)/tools/lcc/src LOKISETUPDIR=misc/setup @@ -1021,7 +1020,6 @@ @if [ ! -d $(B)/tools/asm ];then $(MKDIR) $(B)/tools/asm;fi @if [ ! -d $(B)/tools/etc ];then $(MKDIR) $(B)/tools/etc;fi @if [ ! -d $(B)/tools/rcc ];then $(MKDIR) $(B)/tools/rcc;fi - @if [ ! -d $(B)/tools/cpp ];then $(MKDIR) $(B)/tools/cpp;fi @if [ ! -d $(B)/tools/lburg ];then $(MKDIR) $(B)/tools/lburg;fi ############################################################################# @@ -1053,7 +1051,6 @@ LBURG = $(B)/tools/lburg/lburg$(BINEXT) DAGCHECK_C = $(B)/tools/rcc/dagcheck.c Q3RCC = $(B)/tools/q3rcc$(BINEXT) -Q3CPP = $(B)/tools/q3cpp$(BINEXT) Q3LCC = $(B)/tools/q3lcc$(BINEXT) Q3ASM = $(B)/tools/q3asm$(BINEXT) @@ -1113,25 +1110,6 @@ $(echo_cmd) "LD $@" $(Q)$(CC) $(TOOLS_CFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ $(TOOLS_LIBS) -Q3CPPOBJ = \ - $(B)/tools/cpp/cpp.o \ - $(B)/tools/cpp/lex.o \ - $(B)/tools/cpp/nlist.o \ - $(B)/tools/cpp/tokens.o \ - $(B)/tools/cpp/macro.o \ - $(B)/tools/cpp/eval.o \ - $(B)/tools/cpp/include.o \ - $(B)/tools/cpp/hideset.o \ - $(B)/tools/cpp/getopt.o \ - $(B)/tools/cpp/unix.o - -$(B)/tools/cpp/%.o: $(Q3CPPDIR)/%.c - $(DO_TOOLS_CC) - -$(Q3CPP): $(Q3CPPOBJ) - $(echo_cmd) "LD $@" - $(Q)$(CC) $(TOOLS_CFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ $(TOOLS_LIBS) - Q3LCCOBJ = \ $(B)/tools/etc/lcc.o \ $(B)/tools/etc/bytecode.o @@ -1139,7 +1117,7 @@ $(B)/tools/etc/%.o: $(Q3LCCETCDIR)/%.c $(DO_TOOLS_CC) -$(Q3LCC): $(Q3LCCOBJ) $(Q3RCC) $(Q3CPP) +$(Q3LCC): $(Q3LCCOBJ) $(Q3RCC) $(echo_cmd) "LD $@" $(Q)$(CC) $(TOOLS_CFLAGS) $(TOOLS_LDFLAGS) -o $@ $(Q3LCCOBJ) $(TOOLS_LIBS) @@ -2049,7 +2027,7 @@ OBJ = $(Q3OBJ) $(Q3POBJ) $(Q3POBJ_SMP) $(Q3DOBJ) \ $(MPGOBJ) $(Q3GOBJ) $(Q3CGOBJ) $(MPCGOBJ) $(Q3UIOBJ) $(MPUIOBJ) \ $(MPGVMOBJ) $(Q3GVMOBJ) $(Q3CGVMOBJ) $(MPCGVMOBJ) $(Q3UIVMOBJ) $(MPUIVMOBJ) -TOOLSOBJ = $(LBURGOBJ) $(Q3CPPOBJ) $(Q3RCCOBJ) $(Q3LCCOBJ) $(Q3ASMOBJ) +TOOLSOBJ = $(LBURGOBJ) $(Q3RCCOBJ) $(Q3LCCOBJ) $(Q3ASMOBJ) copyfiles: release @@ -2121,7 +2099,7 @@ @echo "TOOLS_CLEAN $(B)" @rm -f $(TOOLSOBJ) @rm -f $(TOOLSOBJ_D_FILES) - @rm -f $(LBURG) $(DAGCHECK_C) $(Q3RCC) $(Q3CPP) $(Q3LCC) $(Q3ASM) + @rm -f $(LBURG) $(DAGCHECK_C) $(Q3RCC) $(Q3LCC) $(Q3ASM) distclean: clean toolsclean @rm -rf $(BUILD_DIR)