Fix from Lindsey: changed CURRDIR mechanism to make it work on SunOs 4.0
This commit is contained in:
parent
6a8360b335
commit
15377abec5
2 changed files with 28 additions and 28 deletions
|
@ -46,7 +46,7 @@ INPLLIB = $(EMHOME)/modules/lib/llib-linput.ln
|
||||||
ALLOCLLIB = $(EMHOME)/modules/lib/llib-lalloc.ln
|
ALLOCLLIB = $(EMHOME)/modules/lib/llib-lalloc.ln
|
||||||
#LINTLIBS =
|
#LINTLIBS =
|
||||||
LINTLIBS = $(EMMESLLIB) $(EMKLLIB) $(PRTLLIB) $(STRLLIB) $(ALLOCLLIB) $(SYSLLIB)
|
LINTLIBS = $(EMMESLLIB) $(EMKLLIB) $(PRTLLIB) $(STRLLIB) $(ALLOCLLIB) $(SYSLLIB)
|
||||||
CURRDIR = .
|
CURRDIR =
|
||||||
|
|
||||||
COPTIONS =
|
COPTIONS =
|
||||||
|
|
||||||
|
@ -135,41 +135,41 @@ MYLINTFLAGS = #-xh
|
||||||
./make.allocd <$*.str >$*.h
|
./make.allocd <$*.str >$*.h
|
||||||
|
|
||||||
Main: Cfiles
|
Main: Cfiles
|
||||||
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) $(CURRDIR)/main ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve main ; fi'
|
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) $(CURRDIR)main ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve main ; fi'
|
||||||
@rm -f nmclash.o a.out
|
@rm -f nmclash.o a.out
|
||||||
|
|
||||||
Emain: Cfiles
|
Emain: Cfiles
|
||||||
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) $(CURRDIR)/emain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve emain ; fi'
|
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) $(CURRDIR)emain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve emain ; fi'
|
||||||
@rm -f nmclash.o a.out
|
@rm -f nmclash.o a.out
|
||||||
|
|
||||||
Omain: Cfiles
|
Omain: Cfiles
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) "COPTIONS="-DPEEPHOLE $(CURRDIR)/omain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve omain ; fi'
|
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) "COPTIONS="-DPEEPHOLE $(CURRDIR)omain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve omain ; fi'
|
||||||
@rm -f nmclash.o a.out
|
@rm -f nmclash.o a.out
|
||||||
mv *.o PEEPHOLE
|
mv *.o PEEPHOLE
|
||||||
|
|
||||||
CEmain: Cfiles
|
CEmain: Cfiles
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) "COPTIONS="-DCODE_EXPANDER $(CURRDIR)/cemain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve cemain ; fi'
|
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) "COPTIONS="-DCODE_EXPANDER $(CURRDIR)cemain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve cemain ; fi'
|
||||||
@rm -f nmclash.o a.out
|
@rm -f nmclash.o a.out
|
||||||
mv *.o CODE_EXPANDER
|
mv *.o CODE_EXPANDER
|
||||||
|
|
||||||
Lnt: Cfiles
|
Lnt: Cfiles
|
||||||
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) $(CURRDIR)/lnt ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve lnt ; fi'
|
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) $(CURRDIR)lnt ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve lnt ; fi'
|
||||||
make "EMHOME="$(EMHOME) $(CURRDIR)/lnt
|
make "EMHOME="$(EMHOME) $(CURRDIR)lnt
|
||||||
@rm -f nmclash.o a.out
|
@rm -f nmclash.o a.out
|
||||||
|
|
||||||
install: Main
|
install: Main
|
||||||
rm -f $(EMHOME)/lib/em_cemcom $(EMHOME)/man/em_cemcom.6
|
rm -f $(EMHOME)/lib/em_cemcom $(EMHOME)/man/em_cemcom.6
|
||||||
cp $(CURRDIR)/main $(EMHOME)/lib/em_cemcom
|
cp $(CURRDIR)main $(EMHOME)/lib/em_cemcom
|
||||||
cp $(CURRDIR)/cemcom.1 $(EMHOME)/man/em_cemcom.6
|
cp $(CURRDIR)cemcom.1 $(EMHOME)/man/em_cemcom.6
|
||||||
|
|
||||||
Oinstall: Omain
|
Oinstall: Omain
|
||||||
cp $(CURRDIR)/omain $(EMHOME)/lib/em_cemcomO
|
cp $(CURRDIR)omain $(EMHOME)/lib/em_cemcomO
|
||||||
|
|
||||||
cmp: Main
|
cmp: Main
|
||||||
-cmp $(CURRDIR)/main $(EMHOME)/lib/em_cemcom
|
-cmp $(CURRDIR)main $(EMHOME)/lib/em_cemcom
|
||||||
-cmp $(CURRDIR)/cemcom.1 $(EMHOME)/man/em_cemcom.6
|
-cmp $(CURRDIR)cemcom.1 $(EMHOME)/man/em_cemcom.6
|
||||||
|
|
||||||
pr:
|
pr:
|
||||||
@pr Makefile make.* char.tab Parameters $(HSRC) $(STRSRC) $(LSRC) $(CSRC)
|
@pr Makefile make.* char.tab Parameters $(HSRC) $(STRSRC) $(LSRC) $(CSRC)
|
||||||
|
@ -246,25 +246,25 @@ depend: Cfiles
|
||||||
|
|
||||||
#INCLINCLINCLINCL
|
#INCLINCLINCLINCL
|
||||||
|
|
||||||
$(CURRDIR)/main: $(OBJ) $(CURRDIR)/Makefile
|
$(CURRDIR)main: $(OBJ) $(CURRDIR)Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(LIBS) -o $(CURRDIR)/main
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(LIBS) -o $(CURRDIR)main
|
||||||
size $(CURRDIR)/main
|
size $(CURRDIR)main
|
||||||
|
|
||||||
$(CURRDIR)/emain: $(OBJ) $(CURRDIR)/Makefile
|
$(CURRDIR)emain: $(OBJ) $(CURRDIR)Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(ELIBS) -o $(CURRDIR)/emain
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(ELIBS) -o $(CURRDIR)emain
|
||||||
size $(CURRDIR)/emain
|
size $(CURRDIR)emain
|
||||||
|
|
||||||
$(CURRDIR)/omain: $(OBJ) $(CURRDIR)/Makefile
|
$(CURRDIR)omain: $(OBJ) $(CURRDIR)Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(OLIBS) -o $(CURRDIR)/omain
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(OLIBS) -o $(CURRDIR)omain
|
||||||
size $(CURRDIR)/omain
|
size $(CURRDIR)omain
|
||||||
|
|
||||||
$(CURRDIR)/cemain: $(OBJ) $(CURRDIR)/Makefile
|
$(CURRDIR)cemain: $(OBJ) $(CURRDIR)Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(CELIBS) -o $(CURRDIR)/cemain
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(CELIBS) -o $(CURRDIR)cemain
|
||||||
size $(CURRDIR)/cemain
|
size $(CURRDIR)cemain
|
||||||
|
|
||||||
$(CURRDIR)/lnt: $(OBJ) $(CURRDIR)/Makefile
|
$(CURRDIR)lnt: $(OBJ) $(CURRDIR)Makefile
|
||||||
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(LLIBS) -o $(CURRDIR)/lnt
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) $(LLIBS) -o $(CURRDIR)lnt
|
||||||
size $(CURRDIR)/lnt
|
size $(CURRDIR)lnt
|
||||||
|
|
||||||
Xlint: $(SRC)
|
Xlint: $(SRC)
|
||||||
$(LINT) $(CDEFS) $(LINTFLAGS) $(SRC)
|
$(LINT) $(CDEFS) $(LINTFLAGS) $(SRC)
|
||||||
|
|
|
@ -64,4 +64,4 @@ ed - $PW/Makefile <<'EOF'
|
||||||
w Makefile
|
w Makefile
|
||||||
q
|
q
|
||||||
EOF
|
EOF
|
||||||
make EMHOME=$EMHOME COPTIONS=$options CURRDIR=$PW $target
|
make EMHOME=$EMHOME COPTIONS=$options CURRDIR=$PW/ $target
|
||||||
|
|
Loading…
Reference in a new issue