Several corrections

This commit is contained in:
ceriel 1991-10-29 09:26:46 +00:00
parent 35dc8e74d0
commit 4417f0ea8f
2 changed files with 9 additions and 10 deletions

View file

@ -134,12 +134,8 @@ lang_opt(str)
case '-': /* debug options */ case '-': /* debug options */
case 'w': /* disable warnings */ case 'w': /* disable warnings */
if (str[2]) { if (str[2]) {
char buf[3]; str[1] = '-';
append(&COMP_FLAGS, &str[1]);
buf[2] = '\0';
buf[0] = '-';
buf[1] = str[2];
append(&COMP_FLAGS, buf);
} }
else append(&COMP_FLAGS, "-a"); else append(&COMP_FLAGS, "-a");
return 1; return 1;
@ -246,14 +242,14 @@ main(argc, argv)
strcpy(COMP,comp_name()); strcpy(COMP,comp_name());
#ifdef vax4 #ifdef vax4
append(CPP_FLAGS, "-D__vax"); append(&CPP_FLAGS, "-D__vax");
#endif #endif
#ifdef sun3 #ifdef sun3
append(CPP_FLAGS, "-D__sun"); append(&CPP_FLAGS, "-D__sun");
#endif #endif
#ifdef m68020 #ifdef m68020
append(CPP_FLAGS, "-D__mc68020"); append(&CPP_FLAGS, "-D__mc68020");
append(CPP_FLAGS, "-D__mc68000"); append(&CPP_FLAGS, "-D__mc68000");
#endif #endif
if (signal(SIGHUP, SIG_IGN) != SIG_IGN) if (signal(SIGHUP, SIG_IGN) != SIG_IGN)

View file

@ -33,6 +33,9 @@ opr:
clean: clean:
rm -f *,$(SUF) afcc afm2 afpc Out rm -f *,$(SUF) afcc afm2 afpc Out
lint:
$(LINT) $(LINTFLAGS) -DFCC $(SRC_DIR)/driver.c
afcc.$(SUF): $(SRC_DIR)/driver.c $(TARGET_HOME)/config/em_path.h afcc.$(SUF): $(SRC_DIR)/driver.c $(TARGET_HOME)/config/em_path.h
$(CC) $(CFLAGS) -c -DFCC -D$(MACH) -D`ack_sys` $(SRC_DIR)/driver.c $(CC) $(CFLAGS) -c -DFCC -D$(MACH) -D`ack_sys` $(SRC_DIR)/driver.c
mv driver.$(SUF) afcc.$(SUF) mv driver.$(SUF) afcc.$(SUF)