summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-23 16:49:59 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-24 08:00:22 +0100
commit3b4f0d39e34e5c81aa641d53fa0a2971ea970eb4 (patch)
tree0838c6f59609a6bcfd0de6368202fd0446dca090 /Makefile
downloadlibuniso-3b4f0d39e34e5c81aa641d53fa0a2971ea970eb4.tar.bz2
libuniso-3b4f0d39e34e5c81aa641d53fa0a2971ea970eb4.tar.xz
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
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
+