-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (40 loc) · 1.11 KB
/
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
50
51
52
53
54
CC := g++
HOST := $(shell uname -n)
ifeq ($(HOST), raspberrypi)
CFLAGS := -Wall -march=armv6 -mfpu=vfp -mfloat-abi=hard -Iplugins -DPI
else
CFLAGS := -Wall -Iplugins -I/usr/local/include -L/usr/local/lib
endif
LDFLAGS = -lSDL -lSDL_ttf
OBJ = main.o generic.o
OBJPLUGINS = plugins/SimpleEntry.o plugins/PluginBase.o plugins/PluginEntry.o plugins/PluginManager.o
include settings.mak
ifdef LOG
CFLAGS += -DLOG
endif
ifdef DEBUG
CFLAGS += -g
endif
ifdef PLUGIN_VIDEO
OBJPLUGINS += plugins/PluginFile.o plugins/SimpleEntryFile.o
CFLAGS += -DPLUGIN_VIDEO
endif
ifdef PLUGIN_VIET
OBJPLUGINS += plugins/PluginViet.o
CFLAGS += -DPLUGIN_VIET
endif
ifdef PLUGIN_VIET2
OBJPLUGINS += plugins/PluginViet2.o
CFLAGS += -DPLUGIN_VIET2
endif
ifdef PLUGIN_JUPITERBROADCASTING
OBJPLUGINS += plugins/PluginJupiterbroadcasting.o
CFLAGS += -DPLUGIN_JUPITERBROADCASTING
endif
picenter: $(OBJ) $(OBJPLUGINS) Makefile settings.mak conf.h
$(CC) $(CFLAGS) -o picenter $(OBJ) $(OBJPLUGINS) $(LDFLAGS)
%.o: %.cc
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf $(OBJ) $(OBJPLUGINS) picenter
remake: clean picenter