-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (43 loc) · 1.34 KB
/
Makefile
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
CPP=g++
CFLAGS=-c -Wall -Wno-deprecated -march=native -O3
LDLIBS=-L. -L./lib -L/usr/lib -lvtkCommon -lvtkGraphics \
-lvtkIO -lvtkFiltering -lvtkRendering -lvtkImaging
INCLUDES=-I. -I./include
ifeq ($(OS),Windows_NT)
CFLAGS+=-static
INCLUDES+=-I"C:\Program Files (x86)\VTK\include\vtk-5.10"
LDLIBS+=-L"C:\Program Files (x86)\VTK\lib\vtk-5.10"
TARGET=main.exe
else
INCLUDES+=-I/usr/include/vtk-5.10
LDLIBS+=-L./usr/lib
TARGET=main
endif
OPENMP=-fopenmp
OBJECTS=main.o init.o functions.o globals.o interp.o border.o \
debug.o output.o projectile.o triangulate.o
all : $(TARGET)
$(TARGET) : $(OBJECTS)
$(CPP) -o bin/$(TARGET) $(OBJECTS) $(LDLIBS)
main.o : main.cpp globals.cpp
$(CPP) $(CFLAGS) $(INCLUDES) main.cpp
functions.o : functions.cpp
$(CPP) $(CFLAGS) $(INCLUDES) functions.cpp
globals.o : globals.cpp
$(CPP) $(CFLAGS) $(INCLUDES) globals.cpp
interp.o : interp.c
$(CPP) $(CFLAGS) $(INCLUDES) interp.c
debug.o : debug.cpp
$(CPP) $(CFLAGS) $(INCLUDES) debug.cpp
border.o : border.cpp
$(CPP) $(CFLAGS) $(INCLUDES) border.cpp
output.o : output.cpp
$(CPP) $(CFLAGS) $(INCLUDES) output.cpp
init.o : init.cpp
$(CPP) $(CFLAGS) $(INCLUDES) init.cpp
projectile.o : projectile.cpp
$(CPP) $(CFLAGS) $(INCLUDES) projectile.cpp
triangulate.o : triangulate.cpp
$(CPP) $(CFLAGS) $(INCLUDES) triangulate.cpp
clean:
rm -rf *o $(TARGET)