blob: 2a85a5915a660a075bbad08cd59841eec6235421 (
plain) (
blame)
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
|
PROJECT=radiola
CC=gcc
CFLAGS=
LDFLAGS=
LDFLAGS_BSD=
CLEAN=
BUILD_DIR=build/
SRC_DIR=src/
SOURCES=
OBJECTS=
OBJECTS_FINAL=
include $(SRC_DIR)/core/make.mk
include $(SRC_DIR)/draw/make.mk
include $(SRC_DIR)/filt/make.mk
include $(SRC_DIR)/hw/make.mk
include $(SRC_DIR)/mod/make.mk
make: $(OBJECTS)
$(CC) $(OBJECTS_FINAL) $(SRC_DIR)$(PROJECT).c -o $(PROJECT) $(LDFLAGS)
ld -r $(OBJECTS_FINAL) -o $(PROJECT).o
%.o: %.c
@mkdir -p `dirname $(BUILD_DIR)$@`
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@
clean:
rm -f $(PROJECT)
rm -f $(OBJECTS_FINAL)
rm -f *.o
distclean: clean
rm -rf $(BUILD_DIR)
kconf2h: tools/kconf2h/kconf2h
$(CC) -c tools/kconf2h/kconf2h_parser.c -o tools/kconf2h/kconf2h_parser.o
$(CC) tools/kconf2h/kconf2h.c tools/kconf2h/kconf2h_parser.o -o tools/kconf2h/kconf2h
menuconfig: kconf2h
./mconf Kconfig
tools/kconf2h/kconf2h .config config/config_linux.h
menuconfig-bsd: kconf2h
./mconf Kconfig
tools/kconf2h/kconf2h .config config/config_bsd.h
bsd: $(OBJECTS)
$(CC) $(OBJECTS_FINAL) $(PROJECT).c -o $(PROJECT) $(LDFLAGS_BSD)
ld -r $(OBJECTS_FINAL) -o $(PROJECT).o
|