blob: 1ce692c2e0f96ca4b45e448fadda3c79b506ff3f (
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
|
PROJECT=radiola
CC=gcc
CFLAGS=
LDFLAGS=
CLEAN=
BUILD_DIR=build/
SOURCES=
OBJECTS=
OBJECTS_FINAL=
include draw/make.mk
include filt/make.mk
include hw/make.mk
include mod/make.mk
make: $(OBJECTS)
$(CC) $(OBJECTS_FINAL) $(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)
|