-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·38 lines (28 loc) · 869 Bytes
/
Makefile
File metadata and controls
executable file
·38 lines (28 loc) · 869 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
35
36
37
CXXFLAGS += -I../include -I../include/star \
-D_SRC_='"no_source_available"' \
-DHAVE_CONFIG_H
LDLIBS += \
-L. -ldstar \
-L../sstar -lsstar \
-L../node -lnode \
-L../node/dyn -ldyn \
-L../std -lstd \
-lm
CFLAGS += -O
CXXFLAGS += -O
EXE = SeBa Normalisation
DIRS = init io starclass stardyn util
all: lib $(EXE)
%.o: %.C
$(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) -DTOOLBOX -c $<
SeBa: SeBa.o
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)
Normalisation: Normalisation.o
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)
Makefile.inc: Makefile.inc.conf
@sed s#__BASE__#$(PWD)#g Makefile.inc.conf >Makefile.inc
lib: Makefile.inc
@for d in $(DIRS) ; do echo '\nmake' $@ in $$d; make -C $$d $@ ; done
clean: Makefile.inc
@for d in $(DIRS) ; do echo '\nmake' $@ in $$d; make -C $$d $@ ; done
/bin/rm -f *~ *.a $(EXE) Makefile.inc