-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 913 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
#INPUT MAKEFILE
echo=off
# Name of the program
PROGRAM= aia-dpm
INCLUDEDIRS = -I./include
LIBDIRS= -L./lib
LIBS= -linput -lxerces-c -lm
#List of source files
CXXSOURCES = LongTermTimeSlot.cpp LongTermTime.cpp TimeSlot.cpp ShortTermTime.cpp SchedBlock.cpp Project.cpp ProjectHandler.cpp WeatherData.cpp WeatherHandler.cpp Scheduler.cpp
#List of header files
CXXHEADERS = classes.hpp
CXXOBJECTS = $(CXXSOURCES:.cpp=.o)
CXXFLAGS = -c -Wall -O2 $(INCLUDEDIRS)
CXX = g++
LIBFILES = ./lib/libinput.a
LDFLAGS = $(LIBDIRS) $(LIBS)
all: $(LIBFILES) $(PROGRAM)
$(PROGRAM): $(MAKEDEPS) $(CXXOBJECTS) $(CXXHEADERS)
$(CXX) -o $(PROGRAM) $(CXXOBJECTS) $(LDFLAGS)
clean:
$(RM) $(CXXOBJECTS)
$(MAKE) -C ./asch-input clean
distclean:
$(RM) -rf include lib config
$(RM) $(CXXOBJECTS) $(PROGRAM)
$(MAKE) -C ./asch-input clean
run:
@./$(PROGRAM)
o:
@./$(PROGRAM)
lib/libinput.a:
$(MAKE) -C ./asch-input export