Browse Source

now making the core static library

tth 1 year ago
parent
commit
5faccb1724
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      core/Makefile

+ 5
- 4
core/Makefile View File

@@ -8,10 +8,11 @@
8 8
 COPT = -Wall -fpic -g -DDEBUG_LEVEL=0
9 9
 OBJS = lut1024f.o parseconf.o utils.o
10 10
 DEPS = Makefile
11
-
11
+ALIB = libdd2m-core.a
12 12
 # ---------------------------------------------------
13 13
 
14
-libdd2m-core.a:		${OBJS}
14
+${ALIB}:	${OBJS}
15
+	ar r $@ $?
15 16
 
16 17
 lut1024f.o:	lut1024f.c lut1024.h ${DEPS}
17 18
 	gcc -Wall -c $<
@@ -24,8 +25,8 @@ utils.o:	utils.c utils.h  ${DEPS}
24 25
 
25 26
 # ---------------------------------------------------
26 27
 
27
-t:	t.c ${OBJS}  lut1024.h config.h utils.h ${DEPS}
28
-	gcc -Wall $< ${OBJS} -o $@
28
+t:	t.c ${ALIB}  lut1024.h config.h utils.h ${DEPS}
29
+	gcc -Wall $< ${ALIB} -o $@
29 30
 
30 31
 foo.lut1024f:	mklut.pl Makefile
31 32
 	./mklut.pl quux > $@

Loading…
Cancel
Save