From 5faccb17249eece0d00dc4b27bf1974da5945790 Mon Sep 17 00:00:00 2001 From: tth Date: Fri, 18 Jan 2019 16:27:06 +0100 Subject: [PATCH] now making the core static library --- core/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/Makefile b/core/Makefile index 904efcc..f31a15d 100644 --- a/core/Makefile +++ b/core/Makefile @@ -8,10 +8,11 @@ COPT = -Wall -fpic -g -DDEBUG_LEVEL=0 OBJS = lut1024f.o parseconf.o utils.o DEPS = Makefile - +ALIB = libdd2m-core.a # --------------------------------------------------- -libdd2m-core.a: ${OBJS} +${ALIB}: ${OBJS} + ar r $@ $? lut1024f.o: lut1024f.c lut1024.h ${DEPS} gcc -Wall -c $< @@ -24,8 +25,8 @@ utils.o: utils.c utils.h ${DEPS} # --------------------------------------------------- -t: t.c ${OBJS} lut1024.h config.h utils.h ${DEPS} - gcc -Wall $< ${OBJS} -o $@ +t: t.c ${ALIB} lut1024.h config.h utils.h ${DEPS} + gcc -Wall $< ${ALIB} -o $@ foo.lut1024f: mklut.pl Makefile ./mklut.pl quux > $@