summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libdl/Makefile
blob: c0463f8874312dc50b03ed44dd7ed6961eec5ddc (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
# local "test" make file

SRC = $(wildcard *.c) test/test.c
OBJ = _dl_jump.o $(SRC:.c=.o)

#CFLAGS = -Wall -O2
CFLAGS = -g

%.o : %.S
	$(HOME)/bin/diet gcc $(CFLAGS) -c -o $@ $^

%.o : %.c
	$(HOME)/bin/diet gcc $(CFLAGS) -c -o $@ $^

all: test.out

test.g: test.c
	gcc -o $@ $^ -ldl

test.out: $(OBJ)
	$(HOME)/bin/diet gcc -o $@ $^

clean:
	$(RM) *.o *.a *.out *~ # *.so