-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 964 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
OBJS = query.o GUI.o main.o BusApp_Insertion.o BusApp_main_window.o BusApp_printout.o
SOURCE = query.cpp GUI.cpp main.cpp BusApp_Insertion.cpp BusApp_main_window.cpp BusApp_printout.cpp
HEADER = query.h BusApp_Insertion.h BusApp_main_window.h BusApp_printout.h GUI.h
OUT = a.out
CC = g++
FLAGS = -g -c -Wall `wx-config --cxxflags`
LFLAGS = `wx-config --libs` -lpqxx -lpq
all: $(OBJS)
$(CC) -g $(OBJS) -o $(OUT) $(LFLAGS)
GUI.o: GUI.cpp GUI.h
$(CC) $(FLAGS) GUI.cpp
main.o: main.cpp BusApp_main_window.h
$(CC) $(FLAGS) main.cpp
BusApp_Insertion.o: BusApp_Insertion.cpp BusApp_Insertion.h query.h
$(CC) $(FLAGS) BusApp_Insertion.cpp
BusApp_main_window.o: BusApp_main_window.cpp BusApp_main_window.h query.h
$(CC) $(FLAGS) BusApp_main_window.cpp
BusApp_printout.o: BusApp_printout.cpp BusApp_printout.h
$(CC) $(FLAGS) BusApp_printout.cpp
query.o: query.h query.cpp
$(CC) $(FLAGS) query.cpp
clean:
rm -f $(OBJS) $(OUT)
run: $(OUT)
./$(OUT)