From 3b4f0d39e34e5c81aa641d53fa0a2971ea970eb4 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 23 Nov 2011 16:49:59 +0100 Subject: initial commit --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..babfb06 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ + +ABI_VERSION := 0 +SONAME := libuniso.so.$(ABI_VERSION) +OBJS := libuniso.o + + +CFLAGS ?= -g -Wall +CFLAGS += -fPIC + +all: libuniso.so + +$(SONAME): $(OBJS) + $(CC) -shared -Wl,-soname,$(SONAME) -o $@ + +libuniso.so: $(SONAME) + ln -s $< $@ + +%.o: %.c + $(CC) $(CFLAGS) -c $^ + +clean: + rm -f libuniso.so libuniso.so.$(ABI_VERSION) *.o + -- cgit v1.2.3