blob: d4687017ff896efcf880b33f166d0a45529432d6 (
plain)
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
|
all: lowlevel.o
ALLOBJS = init.o aci.o awe_wave.o aedsp16.o
OBJS = init.o
ifdef CONFIG_LOWLEVEL_SOUND
ifdef CONFIG_ACI_MIXER
OBJS := $(OBJS) aci.o
endif
ifdef CONFIG_AWE32_SYNTH
OBJS := $(OBJS) awe_wave.o
endif
ifdef CONFIG_AEDSP16
OBJS := $(OBJS) aedsp16.o
endif
endif
lowlevel.o: $(OBJS)
$(LD) -r -o lowlevel.o $(OBJS)
module: manual_config.h
rm -f lowlevel.o
make CFLAGS="$(CFLAGS) -DLOWLEVEL_MODULE" $(ALLOBJS)
$(LD) -r -o lowlevel.o $(ALLOBJS)
touch module
manual_config.h:
@echo You should create `pwd`/manual_config.h.
@echo See `pwd`/README for more info.
@exit 1
clean:
rm -f core x y z *~ *.o module .depend
dep:
$(CPP) -M $(CFLAGS) -I. *.c > .depend
ifdef HOSTCC
include $(TOPDIR)/Rules.make
else
USE_DEPEND=y
endif
ifdef USE_DEPEND
# include a dependency file if one exists
ifeq (.depend,$(wildcard .depend))
include .depend
endif
endif
|