diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
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 + |