mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
make fixes
This commit is contained in:
parent
cd3533ae5e
commit
15fc28d2d7
2 changed files with 6 additions and 3 deletions
1
Makefile
1
Makefile
|
@ -1,4 +1,5 @@
|
||||||
.PHONY: doc test bench
|
.PHONY: doc test bench
|
||||||
|
.NOTPARALLEL: clean
|
||||||
|
|
||||||
all:
|
all:
|
||||||
${MAKE} -C src
|
${MAKE} -C src
|
||||||
|
|
|
@ -10,6 +10,8 @@ P = match itoa
|
||||||
A = ../lib/libpsyc.a
|
A = ../lib/libpsyc.a
|
||||||
SO = ../lib/libpsyc.so
|
SO = ../lib/libpsyc.so
|
||||||
|
|
||||||
|
.NOTPARALLEL: clean
|
||||||
|
|
||||||
all: CC := ${WRAPPER} ${CC}
|
all: CC := ${WRAPPER} ${CC}
|
||||||
all: lib
|
all: lib
|
||||||
|
|
||||||
|
@ -21,13 +23,13 @@ diet: WRAPPER = ${DIET}
|
||||||
diet: CC := ${WRAPPER} ${CC}
|
diet: CC := ${WRAPPER} ${CC}
|
||||||
diet: lib
|
diet: lib
|
||||||
|
|
||||||
lib: $O $A ${SO}
|
lib: $A ${SO}
|
||||||
|
|
||||||
${SO}:
|
${SO}: $O
|
||||||
@mkdir -p ../lib
|
@mkdir -p ../lib
|
||||||
${CC} ${CFLAGS} -shared -lm -o $@ $O
|
${CC} ${CFLAGS} -shared -lm -o $@ $O
|
||||||
|
|
||||||
$A:
|
$A: $O
|
||||||
@mkdir -p ../lib
|
@mkdir -p ../lib
|
||||||
${WRAPPER} ${AR} rcs $@ $O
|
${WRAPPER} ${AR} rcs $@ $O
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue