mirror of
https://github.com/LCPQ/DEHam
synced 2025-01-03 01:55:55 +01:00
now creates obj dir
This commit is contained in:
parent
a88be2315e
commit
9a15a0cf9b
11
Makefile
11
Makefile
@ -1,11 +1,18 @@
|
|||||||
include ${SLEPC_DIR}/lib/slepc/conf/slepc_common
|
include ${SLEPC_DIR}/lib/slepc/conf/slepc_common
|
||||||
CC=gcc-5
|
CC=gcc-5
|
||||||
MAKE = /usr/bin/make
|
MAKE = /usr/bin/make
|
||||||
|
MKDIR_P = mkdir -p
|
||||||
|
OBJ_DIR = obj
|
||||||
|
|
||||||
irpf90.a:
|
irpf90.a:
|
||||||
cd src && $(MAKE) && cp irpf90.a ../
|
cd src && irpf90 init && $(MAKE) && cp irpf90.a ../
|
||||||
|
|
||||||
obj/read2.o: src/read2.c
|
${OBJ_DIR}:
|
||||||
|
${MKDIR_P} ${OBJ_DIR}
|
||||||
|
|
||||||
|
directories: ${OBJ_DIR}
|
||||||
|
|
||||||
|
obj/read2.o: src/read2.c directories
|
||||||
${CC} -c -o $@ $<
|
${CC} -c -o $@ $<
|
||||||
|
|
||||||
obj/ex1.o: src/ex1.c
|
obj/ex1.o: src/ex1.c
|
||||||
|
Loading…
Reference in New Issue
Block a user