-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
16 lines (13 loc) · 752 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC=g++
CFLAGS=-c -g -Wall `pkg-config --cflags --libs glib-2.0`
LDFLAGS=-ldb_cxx-5.3 -lssl -lcrypto `pkg-config --cflags --libs glib-2.0`
SOURCES=src/view/Safe.cpp src/model/BaseModel.cpp src/model/Key.cpp src/model/Document.cpp src/dao/KeyDao.cpp src/controller/KeyController.cpp src/controller/ReportController.cpp src/dao/DocumentDao.cpp src/controller/DocumentController.cpp src/service/SignatureService.cpp src/service/report/CsvReport.cpp src/service/report/TxtReport.cpp src/service/report/XmlReport.cpp src/service/ReportService.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE="safe"
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
clean:
find . -name *.o | xargs rm