summaryrefslogtreecommitdiff
path: root/dsp/Makefile
blob: 2828921994507fe5a48887afb2c0523af0c2e174 (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
CL6X := $(DSP_CGT)/bin/cl6x
LNK6X := $(DSP_CGT)/bin/lnk6x
DLLCREATE := $(DSP_DOFFBUILD)/bin/DLLcreate

CFLAGS := -O3 -I$(DSP_CGT)/include
OBJECTS := bridge.o64P threshold.o64P

all: threshold.dll64P

threshold.x64P: $(OBJECTS)

# pretty print
%.o64P: %.s
	$(CL6X) $(CFLAGS) -mv=64p -eo.o64P -c $<

%.o64P: %.c
	$(CL6X) $(CFLAGS) -mv=64p -eo.o64P -c $<

%.x64P:
	$(LNK6X) -r -cr --localize='$$bss' -o $@ $+

%.dll64P: %.x64P
	$(DLLCREATE) $< -o=$@

clean:
	$(RM) *.o64P *.x64P *.dll64P