-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmfSBA.mak
executable file
·45 lines (29 loc) · 927 Bytes
/
mfSBA.mak
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
40
41
42
43
44
45
.PHONY : clean
vpath_src=.. ../../randlib/src
vpath %.c $(vpath_src)
vpath %.cpp $(vpath_src)
vpath %.hpp $(vpath_src)
vpath %.h $(vpath_src)
# The X11 base dir on your system
X11BASE=/usr/X11R6
# Add directories with X11 include files here
X11INCS=-I$(X11BASE)/include
# put X11 required libraries and directories here
X11LIBS=-L$(X11BASE)/lib -lX11
SDLDEFS = -D__XWIN__
I_DIRS=-I.. -I../../randlib/src
#P_DEFS=-DGRAPHICS -DPERIODIC_BOUNDARY
CXXFLAGS = -O2 -Wall -std=gnu++0x $(I_DIRS) $(X11INCS) $(SDLDEFS) $(P_DEFS)
#CXXFLAGS = -g -Wall -std=gnu++0x $(I_DIRS) $(X11INCS) $(SDLDEFS) $(P_DEFS)
O = mainMfSBA.o mfSBA.o RWFile.o
L = -lm -ltiff
MAIN_TARGET=mfSBA
all: $(O)
g++ -o $(MAIN_TARGET) $(O) $(L)
clean:
rm $(MAIN_TARGET) $(O)
# DEPENDENCIES
all:
RWFile.o: RWFile.cpp RWFile.h
mainMfSBA.o: mainMfSBA.cpp
mfSBA.o: mfSBA.cpp RWFile.cpp RWFile.h