Added install/clean section

SVN revision: 49
This commit is contained in:
Stefan Ritt 2002-04-26 09:36:58 +00:00
parent c1f319636d
commit 1a57a98639

View File

@ -2,27 +2,42 @@
# Simple makefile for elogd # Simple makefile for elogd
# #
# S. Ritt, May 12th 2000 # S. Ritt, May 12th 2000
# install/clean section by Th. Bullinger, Apr. 26th, 2002
# #
# add "-DUSE_CRYPT" and "-lcrypt" to use crypt() function # add "-DUSE_CRYPT" and "-lcrypt" to use crypt() function
# #
CC = gcc CC = gcc
LIBS = LIBS =
CFLAGS = -march=i586
EXECS = elog elogd
DESTDIR = /usr/local/sbin
INSTALL=/usr/bin/install
RM=/bin/rm
ifeq ($(OSTYPE),solaris) ifeq ($(OSTYPE),solaris)
CC = gcc CC = gcc
LIBS = -lsocket -lnsl LIBS = -lsocket -lnsl
CFLAGS =
INSTALL = /usr/ucb/install
RM = /usr/bin/rm
endif endif
ifeq ($(OSTYPE),darwin) ifeq ($(OSTYPE),darwin)
CC = cc CC = cc
endif endif
all: elogd elog all: $(EXECS)
elog: elog.c elog: elog.c
$(CC) -o elog elog.c $(LIBS) $(CC) $(CFLAGS) -o elog elog.c $(LIBS)
elogd: elogd.c elogd: elogd.c
$(CC) -o elogd elogd.c $(LIBS) $(CC) $(CFLAGS) -o elogd elogd.c $(LIBS)
install: $(EXECS)
$(INSTALL) -m 0755 -o bin -g bin $(EXECS) $(DESTDIR)
clean:
-$(RM) *~ $(EXECS)