-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (28 loc) · 1.28 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
############################################################################################################
VERSION = V1_$(shell date "+%d_%m_%Y_%T")
VERSION = V1_$(shell date "+%d_%m_%Y_%H-%M-%S")
STANDARD = c99
############################################################################################################
INC_DIR = $(shell fltk-config --cxxflags)
FLTK_LIBS =$(shell fltk-config --use-forms --use-images --ldflags --use-gl --use-glut --ldstaticflags)
INC_LIBS = $(FLTK_LIBS) -lpng
GCC ?= g++ -O3 -std=c++11
all : ho
OBJS := ho.o timer.o plot.o ticks.o save_image.o gamma.o PostScript.o
$(OBJDIR)%.o: $(SRCDIR)%.cpp
$(VERBOSE)$(GCC) $(CCFLAGS) $(INC_DIR) -I. -fopenmp -MMD -MP -c $< -o $@
$(OBJDIR)%.o: $(SRCDIR)%.cxx
$(VERBOSE)$(GCC) $(CCFLAGS) $(INC_DIR) -I. -fopenmp -MMD -MP -c $< -o $@
$(OBJDIR)%.o: $(SRCDIR)%.c
$(VERBOSE)$(GCC) $(CCFLAGS) $(INC_DIR) -I. -fopenmp -MMD -MP -c $< -o $@
ho: $(OBJS)
$(VERBOSE)$(GCC) $(CCFLAGS) -o $@ $+ $(INC_LIBS) -fopenmp
clean:
rm -f $(OBJS) ho *.d
deps = $(OBJS:.o=.d)
pack:
@echo Generating Package ho_$(VERSION).tar.gz
@tar cvfz ho_$(VERSION).tar.gz *.cpp *.c *.cxx *.H *.h $(INCS) Makefile
@echo Generated Package ho_$(VERSION).tar.gz
.PHONY : clean pack directories $(PROJECTNAME)
-include $(deps)