blob: 0e76307df5624b3e72f73c5c24aafc354e163121 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
CFLAGS = -I../core -pthread -O3 $(PIC)
LDFLAGS=-lm -pthread
obj=util.o
dep=../core/libecpcore.a ../core/crypto/libecpcr.a ../core/htable/libecpht.a ../core/posix/libecptr.a ../core/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
|