]> pd.if.org Git - zpackage/blobdiff - Makefile
add soname program
[zpackage] / Makefile
index 8f84c9d29b0060d709815792875fe862f84072bc..5972c352785dbf238ee32ec0624b83a24b6d8a84 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,19 @@
-install:
+CFLAGS=-Wall -std=c99
+
+elftype: elf/elftype.c
+       $(CC) $(CFLAGS) -o $@ $+
+
+soname: elf/soname.c
+       $(CC) $(CFLAGS) -o $@ $+
+
+install: elftype
        install -D zpm $(DESTDIR)/bin/zpm
        install -D zpm-note $(DESTDIR)/bin/zpm-note
+       install -D zpm-bug $(DESTDIR)/bin/zpm-bug
        install -D zpm-sequence $(DESTDIR)/bin/zpm-sequence
        install -d -m2770 -o root -g adm $(DESTDIR)/var/lib/admin
        install -d -m2770 -o root -g adm $(DESTDIR)/var/lib/admin/notes
        install -d -m2770 -o root -g adm $(DESTDIR)/var/lib/admin/notes/open
        install -d -m2770 -o root -g adm $(DESTDIR)/var/lib/admin/notes/ack
+       install -D elftype $(DESTDIR)/usr/sbin/elftype
        #SPOOL=$(DESTDIR)/var/lib/admin/notes ./zpm-sequence -c notes