summaryrefslogtreecommitdiff
path: root/openpcd/opcd_test/zebvty/Makefile
blob: dcaf1a2b8dedba01d2e5382ed51db63d71e64619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include ../../makevars

OBJS=vector.o command.o buffer.o vty.o
CFLAGS+=-fPIC
NAME=zebvty

all: lib$(NAME).a lib$(NAME).so

lib$(NAME).a: $(OBJS)
	$(AR) r $@ $^

lib$(NAME).so: $(OBJS)
	$(LD) -x --shared -o $@ $^

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $^

clean:
	@rm -f *.o lib$(NAME).a lib$(NAME).so
personal git repositories of Harald Welte. Your mileage may vary