-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (37 loc) · 1.01 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
#
# Modelovanie a simulacia: system hromadnej obsluhy logistickej firmy
# Vojvoda Jakub, Bendik Lukas
# 2013
#
# -----------------------------------------------------
# Projekt name
HNAME = libstr
CNAME1 = strateg1
CNAME2 = strateg2
#HNAME3 = libstr3
#CNAME3 = strateg3
# C++ compiler
CXX = g++
CXXFLAGS = -g -Wall -Wextra -pedantic
# Linker
LDFLAGS = -lm
LDLIBS = -lsimlib
# Run
ST = ./$(CNAME1); ./$(CNAME2)
# Clean
RM = rm -f
# Debug mode
debug: CXXFLAGS += -DDEBUG
# ---------------------------------------------------------------------
all: $(CNAME1) $(CNAME2)
$(CNAME1): $(CNAME1).cpp $(HNAME).h
$(CXX) $(CXXFLAGS) -o $(CNAME1) $(CNAME1).cpp $(LDFLAGS) $(LDLIBS)
$(CNAME2): $(CNAME2).cpp $(HNAME).h
$(CXX) $(CXXFLAGS) -o $(CNAME2) $(CNAME2).cpp $(LDFLAGS) $(LDLIBS)
#$(CNAME3): $(CNAME3).cpp $(HNAME3).h
# $(CXX) $(CXXFLAGS) -o $(CNAME3) $(CNAME3).cpp $(LDFLAGS) $(LDLIBS)
debug: $(CNAME1) $(CNAME2)
run:
$(ST)
clean:
$(RM) $(CNAME1) $(CNAME2) *~