summaryrefslogtreecommitdiff
path: root/ecp/util/Makefile
blob: e65a7574d34b4475f0acc3ba801be95a11e7dd41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
src_dir = ../src
include $(src_dir)/ecp/common.mk

obj=util.o
dep=../build-posix/*.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