-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (29 loc) · 757 Bytes
/
makefile
File metadata and controls
39 lines (29 loc) · 757 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
38
39
CXX = g++
# CXXFLAGS = -g
CXXFLAGS = -O3
DIRSRC = ./src/
DIRFFT = $(DIRSRC)FFT/
DIRS = $(DIRSRC) $(DIRFFT)
LIBS = $(DIRSRC)source.a $(DIRFFT)fftLibrary.a
EXE = Trifid
all: $(EXE)
$(EXE): $(LIBS)
echo Linking executable...
$(CXX) $(CXXFLAGS) -o $(EXE) -L. $(LIBS)
$(DIRSRC)source.a: force_look
echo Building source library...
cd $(DIRSRC); $(MAKE) $(MFLAGS)
$(DIRFFT)fftLibrary.a: force_look
echo Building FFT library...
cd $(DIRFFT); $(MAKE) $(MFLAGS)
cleanObj:
rm -f *.o *~ \#*\#
for d in $(DIRS); do (cd $$d; $(MAKE) cleanObj); done
clean: cleanObj
rm -f $(EXE) $(DIRSRC)*.a
for d in $(DIRS); do (cd $$d; $(MAKE) clean); done
# Remove all images that appear to be Trifid output images.
cleanImg:
rm -f images/*_out*
force_look:
true