forked from dwhinham/mt32-pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kernel.mk
92 lines (79 loc) · 2.18 KB
/
Kernel.mk
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# Build kernel
#
include Config.mk
OBJS := src/config.o \
src/control/control.o \
src/control/mister.o \
src/control/rotaryencoder.o \
src/control/simplebuttons.o \
src/control/simpleencoder.o \
src/kernel.o \
src/lcd/drivers/hd44780.o \
src/lcd/drivers/hd44780fourbit.o \
src/lcd/drivers/hd44780i2c.o \
src/lcd/drivers/sh1106.o \
src/lcd/drivers/ssd1306.o \
src/lcd/ui.o \
src/main.o \
src/midimonitor.o \
src/midiparser.o \
src/mt32pi.o \
src/net/applemidi.o \
src/net/ftpdaemon.o \
src/net/ftpworker.o \
src/net/udpmidi.o \
src/pisound.o \
src/power.o \
src/rommanager.o \
src/soundfontmanager.o \
src/synth/mt32synth.o \
src/synth/soundfontsynth.o \
src/zoneallocator.o
EXTRACLEAN += src/*.d src/*.o \
src/control/*.d src/control/*.o \
src/lcd/*.d src/lcd/*.o \
src/lcd/drivers/*.d src/lcd/drivers/*.o \
src/net/*.d src/net/*.o \
src/synth/*.d src/synth/*.o
#
# inih
#
OBJS += $(INIHHOME)/ini.o
INCLUDE += -I $(INIHHOME)
EXTRACLEAN += $(INIHHOME)/ini.d \
$(INIHHOME)/ini.o
include $(CIRCLEHOME)/Rules.mk
CFLAGS += -Werror -Wextra -Wno-unused-parameter
CFLAGS += -I "$(NEWLIBDIR)/include" \
-I $(STDDEF_INCPATH) \
-I $(CIRCLESTDLIBHOME)/include \
-I include \
-I .
LIBS := $(CIRCLE_STDLIB_LIBS) \
$(CIRCLEHOME)/addon/fatfs/libfatfs.a \
$(CIRCLEHOME)/addon/SDCard/libsdcard.a \
$(CIRCLEHOME)/addon/wlan/hostap/wpa_supplicant/libwpa_supplicant.a \
$(CIRCLEHOME)/addon/wlan/libwlan.a \
$(CIRCLEHOME)/lib/fs/libfs.a \
$(CIRCLEHOME)/lib/input/libinput.a \
$(CIRCLEHOME)/lib/libcircle.a \
$(CIRCLEHOME)/lib/net/libnet.a \
$(CIRCLEHOME)/lib/sched/libsched.a \
$(CIRCLEHOME)/lib/usb/libusb.a
ifeq ($(HDMI_CONSOLE), 1)
DEFINE += -D HDMI_CONSOLE
endif
-include $(DEPS)
INCLUDE += -I $(MT32EMUBUILDDIR)/include
EXTRALIBS += $(MT32EMULIB)
INCLUDE += -I $(FLUIDSYNTHBUILDDIR)/include \
-I $(FLUIDSYNTHHOME)/include
EXTRALIBS += $(FLUIDSYNTHLIB)
#
# Generate version string from git tag
#
VERSION=$(shell git describe --tags --dirty --always 2>/dev/null)
ifneq ($(VERSION),)
DEFINE += -D MT32_PI_VERSION=\"$(VERSION)\"
endif