include ../config.mak

CC=$(CXX)

.PHONY: all clean

all: libcompux.so libunix.so test test2 test3

test: test.o ./libcompux.so

clean:
	rm -f libunix.so *.o test libcompux.so test2 test3

libcompux.so: libunix.o
	$(CXX) $(SHARED) $^ $(LDLIBS) -o $@

libunix.so: connect.o libunix.o
	$(CXX) $(SHARED) $^ $(LDLIBS) -o $@
