use $(CC) instead of cc

This commit is contained in:
ceriel 1988-07-08 11:37:17 +00:00
parent 378b233c33
commit 9ab5e19576
10 changed files with 17 additions and 27 deletions

View file

@ -28,7 +28,7 @@ dispatdummy: $(IOP) mkdispatch
sed -f dispat3.sed < dispatdummy | $(TBL) > dispat3 sed -f dispat3.sed < dispatdummy | $(TBL) > dispat3
mkdispatch: mkdispatch.c mkdispatch: mkdispatch.c
cc -I$(HOME)/util/ass -I$(HOME)/h -o mkdispatch mkdispatch.c $(HOME)/lib/em_data.a $(CC) -I$(HOME)/util/ass -I$(HOME)/h -o mkdispatch mkdispatch.c $(HOME)/lib/em_data.a
.SUFFIXES : .pr .nr .SUFFIXES : .pr .nr
.nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@ .nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@

View file

@ -9,7 +9,7 @@ tables: mktables $(HOME)/etc/ip_spec.t
mktables: mktables.c $(HOME)/h/em_spec.h $(HOME)/h/em_flag.h \ mktables: mktables.c $(HOME)/h/em_spec.h $(HOME)/h/em_flag.h \
$(HOME)/lib/em_data.a $(HOME)/util/ass/ip_spec.h $(HOME)/lib/em_data.a $(HOME)/util/ass/ip_spec.h
cc -I$(HOME) -O -o mktables mktables.c $(HOME)/lib/em_data.a $(CC) -I$(HOME) -O -o mktables mktables.c $(HOME)/lib/em_data.a
em.out: em.p em.out: em.p
apc -mint -O em.p >emerrs ; mv e.out em.out apc -mint -O em.p >emerrs ; mv e.out em.out
@ -24,7 +24,7 @@ nem: nem.p
apc -O -i nem.p >emerrs ; mv a.out nem apc -O -i nem.p >emerrs ; mv a.out nem
emdmp: emdmp.c emdmp: emdmp.c
cc -I$(HOME)/h -o emdmp -O emdmp.c $(CC) -I$(HOME)/h -o emdmp -O emdmp.c
cmp: cmp:

View file

@ -16,4 +16,4 @@ last: tests test.h select
echo 0 >last echo 0 >last
select: select.c select: select.c
cc -O -i -o select select.c $(CC) -O -i -o select select.c

View file

@ -2,7 +2,7 @@ EMHOME=../../..
CFLAGS=-O -I$(EMHOME)/h CFLAGS=-O -I$(EMHOME)/h
dl: dl.o dl: dl.o
cc -o dl -n dl.o $(EMHOME)/modules/lib/libobject.a $(CC) -o dl dl.o $(EMHOME)/modules/lib/libobject.a
install: dl install: dl
../../install dl ../../install dl

View file

@ -4,7 +4,7 @@ b=../../../lib/em22
all: $(INTS) eminform em all: $(INTS) eminform em
em: em.c em: em.c
cc -o em -I../../../h em.c $(CC) -o em -I../../../h em.c
eminform: eminform.s eminform: eminform.s
as eminform.s;ld -i -o eminform a.out -lc as eminform.s;ld -i -o eminform a.out -lc

View file

@ -66,7 +66,7 @@ dmach.c intable.c: mktables dmach.h
mktables $(ACKDIR) mktables $(ACKDIR)
mktables: mktables.c mktables: mktables.c
cc -o mktables mktables.c $(CC) -o mktables mktables.c
pr: pr:
@pr Makefile $(HFILES) $(DSRC) @pr Makefile $(HFILES) $(DSRC)

View file

@ -6,7 +6,7 @@ PC_PATH=$(EMHOME)/lib/em_pc
LDFLAGS = -i LDFLAGS = -i
em_pc: em_pc.c $h/local.h $h/em_path.h em_pc: em_pc.c $h/local.h $h/em_path.h
cc $(LDFLAGS) -o em_pc -O -I$h em_pc.c $(CC) $(LDFLAGS) -o em_pc -O -I$h em_pc.c
cmp: em_pc cmp: em_pc
cmp em_pc $(PC_PATH) cmp em_pc $(PC_PATH)

View file

@ -5,23 +5,21 @@ h=$d/h
m=$d/man m=$d/man
ASS_PATH=$l/em_ass ASS_PATH=$l/em_ass
SEP_OPT=-i
CFLAGS=-O CFLAGS=-O
all: ass$(SEP_OPT) all: ass
clean: clean:
-rm -f ass-i ass-n *.o maktab *.old asstb.c -rm -f ass *.o maktab *.old asstb.c
install : all install : all
rm -f $(ASS_PATH) rm -f $(ASS_PATH)
cp ass$(SEP_OPT) $(ASS_PATH) cp ass $(ASS_PATH)
rm -f $m/em_ass.6 rm -f $m/em_ass.6
cp em_ass.6 $m/em_ass.6 cp em_ass.6 $m/em_ass.6
cmp : all cmp : all
-cmp ass$(SEP_OPT) $(ASS_PATH) -cmp ass $(ASS_PATH)
-cmp em_ass.6 $m/em_ass.6 -cmp em_ass.6 $m/em_ass.6
lint: ass00.c ass30.c ass40.c ass50.c ass60.c ass70.c \ lint: ass00.c ass30.c ass40.c ass50.c ass60.c ass70.c \
@ -31,18 +29,10 @@ lint: ass00.c ass30.c ass40.c ass50.c ass60.c ass70.c \
ass80.c assci.c assda.c assrl.c asstb.c asscm.c ass80.c assci.c assda.c assrl.c asstb.c asscm.c
ass-n: ass00.o ass30.o ass40.o ass50.o ass60.o ass70.o \ ass: ass00.o ass30.o ass40.o ass50.o ass60.o ass70.o \
ass80.o assci.o assda.o assrl.o asstb.o asscm.o \ ass80.o assci.o assda.o assrl.o asstb.o asscm.o \
$l/em_data.a $l/em_data.a
cc -n $(CFLAGS) -o ass-n \ $(CC) -i $(CFLAGS) -o ass \
ass00.o ass30.o ass40.o ass50.o ass60.o ass70.o \
ass80.o assci.o assda.o assrl.o asstb.o asscm.o \
$l/em_data.a
ass-i: ass00.o ass30.o ass40.o ass50.o ass60.o ass70.o \
ass80.o assci.o assda.o assrl.o asstb.o asscm.o \
$l/em_data.a
cc -i $(CFLAGS) -o ass-i \
ass00.o ass30.o ass40.o ass50.o ass60.o ass70.o \ ass00.o ass30.o ass40.o ass50.o ass60.o ass70.o \
ass80.o assci.o assda.o assrl.o asstb.o asscm.o \ ass80.o assci.o assda.o assrl.o asstb.o asscm.o \
$l/em_data.a $l/em_data.a
@ -73,7 +63,7 @@ asstb.c: maktab $d/etc/ip_spec.t
maktab: maktab.c $h/em_spec.h ip_spec.h $h/em_flag.h \ maktab: maktab.c $h/em_spec.h ip_spec.h $h/em_flag.h \
$l/em_data.a $l/em_data.a
cc -O -o maktab maktab.c $l/em_data.a $(CC) -O -o maktab maktab.c $l/em_data.a
asprint: asprint.p asprint: asprint.p
apc -w -o asprint asprint.p apc -w -o asprint asprint.p

View file

@ -9,7 +9,7 @@ LIBS=../../lib/em_data.a
LEXLIB=-lln LEXLIB=-lln
cgg: bootgram.o cgg: bootgram.o
cc $(LDFLAGS) bootgram.o $(LIBS) $(LEXLIB) -o cgg $(CC) $(LDFLAGS) bootgram.o $(LIBS) $(LEXLIB) -o cgg
bootgram.c: bootgram.y bootgram.c: bootgram.y
@echo expect 1 shift/reduce conflict @echo expect 1 shift/reduce conflict

View file

@ -28,7 +28,7 @@ hash.o: misc.h
pattern.o: misc.h symtab.h pattern.o: misc.h symtab.h
topgen: $(OFILES) topgen: $(OFILES)
cc $(OFILES) -o topgen $(CC) $(OFILES) -o topgen
lint: parser lint: parser
lint $(CFILES) lint $(CFILES)