Use LDFLAGS

This commit is contained in:
ceriel 1987-03-17 16:37:04 +00:00
parent bbce3bd894
commit f95c97b38c
4 changed files with 9 additions and 4 deletions

View file

@ -1,7 +1,8 @@
CFLAGS=-O -I../../../h CFLAGS=-O -I../../../h
LDFLAGS = -i
cv: cv.o cv: cv.o
$(CC) -o cv -n cv.o $(CC) -o cv $(LDFLAGS) cv.o
install: ins_cv install: ins_cv
ins_cv: cv ins_cv: cv

View file

@ -1,9 +1,10 @@
EMHOME=../../.. EMHOME=../../..
LDFLAGS = -i
CFLAGS=-O -I$(EMHOME)/h CFLAGS=-O -I$(EMHOME)/h
cv: cv.o cv: cv.o
$(CC) -o cv -n cv.o $(EMHOME)/modules/lib/libobject.a $(CC) -o cv $(LDFLAGS) cv.o $(EMHOME)/modules/lib/libobject.a
install: cv install: cv
../../install cv ../../install cv

View file

@ -3,8 +3,10 @@ h=$(EMHOME)/h
PC_PATH=$(EMHOME)/lib/em_pc PC_PATH=$(EMHOME)/lib/em_pc
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 -n -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

@ -3,7 +3,8 @@ BINDIR = $(EM)/bin
MANDIR = $(EM)/man MANDIR = $(EM)/man
LIBDIR = $(EM)/modules/lib LIBDIR = $(EM)/modules/lib
h = $(EM)/h h = $(EM)/h
CFLAGS = -n -O -I$h LDFLAGS = -i
CFLAGS = $(LDFLAGS) -O -I$h
ALL = anm asize astrip ALL = anm asize astrip
OFILES = anm.o asize.o astrip.o OFILES = anm.o asize.o astrip.o
CFILES = anm.c asize.c astrip.c CFILES = anm.c asize.c astrip.c