-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (26 loc) · 981 Bytes
/
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
############################################################################################################
VERSION = V1_$(shell date "+%d_%m_%Y_%T")
VERSION = V1_$(shell date "+%d_%m_%Y_%H-%M-%S")
STANDARD = c99
############################################################################################################
INC_DIR =
INC_LIBS =
GCC ?= g++ -O3
# -std=c++11
all : u1
OBJS := u1.o timer.o
$(OBJDIR)%.o: $(SRCDIR)%.cpp
$(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 $@
u1: $(OBJS)
$(VERBOSE)$(GCC) $(CCFLAGS) -o $@ $+ $(INC_LIBS) -fopenmp
clean:
rm -f $(OBJS) u1 *.d
deps = $(OBJS:.o=.d)
pack:
@echo Generating Package u1_$(VERSION).tar.gz
@tar cvfz u1_$(VERSION).tar.gz *.cpp *.h $(INCS) Makefile
@echo Generated Package u1_$(VERSION).tar.gz
.PHONY : clean pack directories $(PROJECTNAME)
-include $(deps)