root / xseg / sys / user / xheap / Makefile @ 9fb0f83b
History | View | Annotate | Download (648 Bytes)
1 |
.PHONY: default all clean |
---|---|
2 |
|
3 |
include $(XSEG_HOME)/base.mk |
4 |
|
5 |
DEBUG=-g |
6 |
|
7 |
default: all |
8 |
|
9 |
all: xheap.o xheap.pic.o xheap_test |
10 |
|
11 |
$(BASE)/sys/user/xseg_user.o: |
12 |
make -C $(BASE)/sys/user xseg_user.o |
13 |
|
14 |
xheap_test: $(BASE)/xtypes/xheap_test.c xheap.o $(BASE)/sys/user/xseg_user.o |
15 |
$(CC) $(CFLAGS) $(INC) -L$(LIB) -o $@ $< xheap.o \ |
16 |
$(BASE)/sys/user/xseg_user.o -ldl -lpthread |
17 |
|
18 |
xheap.o: $(BASE)/xtypes/xheap.c $(BASE)/xtypes/xheap.h $(BASE)/xtypes/xlock.h |
19 |
$(CC) $(CFLAGS) $(INC) -c -o $@ $< |
20 |
|
21 |
xheap.pic.o: $(BASE)/xtypes/xheap.c $(BASE)/xtypes/xheap.h $(BASE)/xtypes/xlock.h |
22 |
$(CC) $(CFLAGS) $(INC) -fPIC -c -o $@ $< |
23 |
|
24 |
clean: |
25 |
rm -f xheap.o xheap.pic.o xheap_test |