diff options
| author | Nakidai <nakidai@disroot.org> | 2024-09-26 00:39:57 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-09-26 00:39:57 +0300 |
| commit | 9365d75ec4870371c102ec9de28cadc75c6876f8 (patch) | |
| tree | 9678d8279bd47fc695b1a7af17ce89aa028bac53 | |
| parent | 811bd32a42ca6d8217bda48eff3bba774bdff466 (diff) | |
| download | cpetpet-9365d75ec4870371c102ec9de28cadc75c6876f8.tar.gz cpetpet-9365d75ec4870371c102ec9de28cadc75c6876f8.zip | |
Add lib
| -rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile index 3fb7ded..8bfd5d1 100644 --- a/Makefile +++ b/Makefile @@ -10,28 +10,28 @@ SRCDIR = src OBJDIR = obj OBJS = cpetpet.o -all: cpetpet.a cpetpet.so +all: libcpetpet.a libcpetpet.so $(OBJS): config.h cpetpet.h -cpetpet.a cpetpet.so: $(OBJS) +libcpetpet.a libcpetpet.so: $(OBJS) -cpetpet.so: +libcpetpet.so: cc -shared -o $@ ${LDFLAGS} ${LDLIBS} $^ -cpetpet.a: +libcpetpet.a: ar rcs $@ $^ install: all install -d $(DESTDIR)/lib $(DESTDIR)/share/cpetpet - install -m644 cpetpet.a $(DESTDIR)/lib - install -m755 cpetpet.so $(DESTDIR)/lib + install -m644 libcpetpet.a $(DESTDIR)/lib + install -m755 libcpetpet.so $(DESTDIR)/lib install -m644 share/cpetpet/* $(DESTDIR)/share/cpetpet install -m644 cpetpet.h $(DESTDIR)/include uninstall: $(RM) -r $(DESTDIR)/share/cpetpet - $(RM) $(DESTDIR)/lib/cpetpet.{a,so} + $(RM) $(DESTDIR)/lib/libcpetpet.{a,so} $(RM) $(DESTDIR)/include/cpetpet.h clean: |