X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=gnokiid%2FMakefile;fp=gnokiid%2FMakefile;h=fde8ac222dd1f4a9b329a16bdefa9496ca2eabba;hb=5d49fe8eea4e11457b4f9904eb0d5db435679841;hp=0000000000000000000000000000000000000000;hpb=a51604573a1dfaaad4304ffbf918e91617acf468;p=gnokii.git diff --git a/gnokiid/Makefile b/gnokiid/Makefile new file mode 100644 index 0000000..fde8ac2 --- /dev/null +++ b/gnokiid/Makefile @@ -0,0 +1,72 @@ + +# +# Makefile for the GNOKII tool suite. +# +# Copyright (C) 1999 Hugh Blemings & Pavel Janík ml. +# 2000 Karel Zak +# + +TOPDIR=.. +include $(TOPDIR)/Makefile.global + +CFLAGS += $(PTHREAD_CFLAGS) +LDFLAGS += $(PTHREAD_LIBS) + +OBJS = gnokiid.o + +all: gnokiid + +gnokiid: $(OBJS) $(TOPDIR)/common/COMMON.o $(TOPDIR)/common/DATA.o + +$(TOPDIR)/common/COMMON.o: + $(MAKE) -C $(TOPDIR)/common COMMON.o + +$(TOPDIR)/common/DATA.o: + $(MAKE) -C $(TOPDIR)/common DATA.o + +$(TOPDIR)/common/libmygnokii.so: + $(MAKE) -C $(TOPDIR)/common makelib + +makelib: $(OBJS) $(TOPDIR)/common/libmygnokii.so + $(CC) $(LDFLAGS) -L$(TOPDIR)/common -lmygnokii $(OBJS) -o gnokiidlib + +clean: + $(RM) $(OBJS) *~ depend gnokiid gnokiidlib *.exe core *.bak + +install: all + $(INSTALL) -d $(sbindir) + $(INSTALL) gnokiid $(sbindir) + $(INSTALL) gnokiidlib $(sbindir)/gnokiid + +install-strip: all + $(INSTALL) -d $(sbindir) + $(INSTALL) -s gnokiid $(sbindir) + $(INSTALL) -s gnokiidlib $(sbindir)/gnokiid + @echo "done" + +install-suid: all + @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \ + /usr/sbin/groupadd gnokii; \ + fi + $(INSTALL) -d $(sbindir) + $(INSTALL) -o root -g gnokii -m 4750 gnokiid $(sbindir) + $(INSTALL) -o root -g gnokii -m 4750 gnokiidlib $(sbindir)/gnokiid + @echo "done" + +install-ss: all + @if [ -z "/bin/grep -e '^gnokii:' /etc/group" ]; then \ + /usr/sbin/groupadd gnokii; \ + fi + $(INSTALL) -d $(sbindir) + $(INSTALL) -o root -g gnokii -m 4750 -s gnokiid $(sbindir) + $(INSTALL) -o root -g gnokii -m 4750 -s gnokiidlib $(sbindir)/gnokiid + @echo "done" + +depend dep: + $(CC) $(CFLAGS) -MM *.c >depend + +ifeq (depend,$(wildcard depend)) +include depend +endif + +.PHONY: all install clean dep depend