-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
49 lines (33 loc) · 911 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
45
46
47
48
49
CFLAGS=-I/header -L/usr/lib -lmysqlcppconn
all: Main
Doxygen:
doxygen Doxyfile
Mysql:
mysql -u root -p$(password) -e "create database Sim;"
mysql -u root -p$(password) Sim<Sim.sql
Main: main.cpp structure.o material.o header.o joint.o member.o job.o ConcreteDesign.o
g++ main.cpp structure.o ConcreteDesign.o header.o job.o joint.o member.o material.o -o Main $(CFLAGS)
structure.o:
g++ src/structure.cpp -c
job.o:
g++ src/job.cpp -c
joint.o:
g++ src/joint.cpp -c
member.o:
g++ src/member.cpp -c
material.o:
g++ src/material.cpp -c
ConcreteDesign.o:
g++ src/ConcreteDesign.cpp -c
header.o:
g++ src/header.cpp -D USER=\"$(user)\" -D PASSWORD=\"$(password)\" -c
Parse: scan.l parse.y
bison -d parse.y
flex scan.l
g++ -o $@ parse.tab.c lex.yy.c -lfl
clear:
rm -r *.o
rm Main
clean: clear delmysql
delmysql:
mysql -u $(user) -p$(password) -e "drop database Sim;"