summaryrefslogtreecommitdiff
path: root/code/util/Makefile
blob: a896fc201af9b3a67e3b2e7a6753d56f25a1d601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include ../ecp/Makefile.platform
CFLAGS=$(CFLAGS_PL) -I../ecp
LDFLAGS=$(LDFLAGS_PL)

obj=util.o
dep=../ecp/libecpcore.a ../ecp/crypto/libecpcr.a ../ecp/htable/libecpht.a ../ecp/posix/libecptr.a ../ecp/posix/libecptm.a ./libecputil.a 


%.o: %.c %.h
	$(CC) $(CFLAGS) -c $<

all: libecputil.a mknode
	
libecputil.a: $(obj)
	$(AR) rcs libecputil.a $(obj)

mknode: mknode.o libecputil.a
	$(CC) -o $@ $< $(dep) $(LDFLAGS)

clean:
	rm -f *.o *.a
	rm -f mknode