-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (19 loc) · 969 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
TARGET:=FTDI
INCLUDE:= -Iinclude
CXX := g++ -ggdb -w
ROOTCFLAGS := $(shell root-config --cflags)
CFLAGS := $(ROOTCFLAGS) $(INCLUDE)
LDFLAGS := $(shell root-config --glibs --ldflags) -Llib
all: com gui prg
gui:
@echo compiling gui
@echo $(CXX) $(CFLAGS) src/CFD_MainFrame.cpp src/CFD_Tab.cpp CFD_Frame_Dict.cxx CFD_Tab_Dict.cxx -Wall -fPIC -shared $(LDFLAGS) -o lib/libGui.so -lcom
@$(CXX) $(CFLAGS) src/CFD_MainFrame.cpp src/CFD_Tab.cpp CFD_Frame_Dict.cxx CFD_Tab_Dict.cxx -Wall -fPIC -shared $(LDFLAGS) -lcom -o lib/libgui.so
com:
@echo Compiling com
@ echo $(CXX) $(CFLAGS) src/USBCom.cpp src/CFD.cpp -Wall -fPIC -shared $(LDFLAGS) -lftd2xx -o lib/libcom.so
@$(CXX) $(CFLAGS) src/USBCom.cpp src/CFD.cpp -Wall -fPIC -shared $(LDFLAGS) -lftd2xx -o lib/libcom.so
prg:
@echo Compiling main
@echo $(CXX) $(CFLAGS) src/main.cpp $(LDFLAGS) -lcom -lgui -lftd2xx -o $(TARGET)
@$(CXX) $(CFLAGS) src/main.cpp $(LDFLAGS) -lcom -lgui -lftd2xx -o $(TARGET)