-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
37 lines (28 loc) · 907 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
CXX ?= g++
TARGET = FloppyBridge.so
SOURCE = floppybridge/ArduinoFloppyBridge.cpp \
floppybridge/ArduinoInterface.cpp \
floppybridge/CommonBridgeTemplate.cpp \
floppybridge/ftdi.cpp \
floppybridge/pll.cpp \
floppybridge/GreaseWeazleBridge.cpp \
floppybridge/GreaseWeazleInterface.cpp \
floppybridge/RotationExtractor.cpp \
floppybridge/SerialIO.cpp \
floppybridge/SuperCardProBridge.cpp \
floppybridge/SuperCardProInterface.cpp \
windows/FloppyBridge.cpp
DEPS = $(SOURCE:%.cpp=%.d)
CPPFLAGS +=-shared -fPIC -ldl -Ifloppybridge -Iwindows
.PHONY : all clean
$(TARGET) : $(SOURCE)
$(CXX) $(CPPFLAGS) -o $(TARGET) $(SOURCE)
all : $(TARGET)
install : $(TARGET)
cp $(TARGET) /usr/local/lib
clean :
rm -f $(DEPS)
rm -f $(TARGET)
cleanprofile:
rm -f $(OBJS:%.o=%.gcda)
-include $(DEPS)