-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 688 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
BIN_TARGETS := qdlsolve
# Standard Targets
.PHONY: all libs clean $(BIN_TARGETS) FORCE
all: $(BIN_TARGETS)
clean:
$(MAKE) -C lib/ clean
$(MAKE) -C src/model clean
$(MAKE) -C src/qdl clean
rm -rf bin/
## Binary Targets ###########################################################
# Create bin/ Directory
$(BIN_TARGETS): bin
bin: lib/libipasir.so
mkdir -p $@
# Generic Target Rules
$(BIN_TARGETS): %: bin/%
bin/%:
cp $< $@
src/%: FORCE
$(MAKE) -C $(dir $@) $(notdir $@)
# Individual Dependencies
bin/qdlsolve: src/qdl/qdlsolve
## Libaries #################################################################
libs:
$(MAKE) -C lib/
lib/lib%.so: FORCE
$(MAKE) -C lib/ $(notdir $@)