use LDFLAGS

This commit is contained in:
ceriel 1987-03-17 16:33:55 +00:00
parent 15382edbd6
commit bbce3bd894
2 changed files with 6 additions and 4 deletions

View file

@ -7,14 +7,15 @@ LIBS = $(LIB)/libobject.a $(LIB)/libprint.a \
$(LIB)/libstring.a $(LIB)/libsystem.a
CFLAGS=-O -I$(EMH)
LDFLAGS = -i
all: arch aal
arch: arch.o
$(CC) -n -o arch arch.o $(LIBS)
$(CC) $(LDFLAGS) -o arch arch.o $(LIBS)
aal: aal.o
$(CC) -i -o aal aal.o $(LIBS)
$(CC) $(LDFLAGS) -o aal aal.o $(LIBS)
arch.o: $(EMH)/arch.h archiver.c
$(CC) $(CFLAGS) -c archiver.c

View file

@ -17,14 +17,15 @@ HFILES=$h/em_mnem.h $h/em_spec.h $h/em_pseu.h $h/em_flag.h $h/em_ptyp.h \
$h/em_mes.h $(mh)/em.h $(mh)/em_comp.h
CFLAGS=-O -I$(mh) -I$h
LDFLAGS = -i
all: $(DEC_PATH) $(ENC_PATH)
$(DEC_PATH): decode.o $(DATA_PATH)
cc -n -o $(DEC_PATH) decode.o $(DECLIBS) $(DATA_PATH)
cc $(LDFLAGS) -o $(DEC_PATH) decode.o $(DECLIBS) $(DATA_PATH)
$(ENC_PATH): encode.o $(DATA_PATH)
cc -n -o $(ENC_PATH) encode.o $(ENCLIBS) $(DATA_PATH)
cc $(LDFLAGS) -o $(ENC_PATH) encode.o $(ENCLIBS) $(DATA_PATH)
convert.o: $(HFILES)