bday

view Makefile @ 0:22b6e71de68e

initial commit; codebase from birthday; just the needed stuff; substituted getopt by own code
author meillo@marmaro.de
date Sun, 16 Dec 2007 22:26:48 +0100
parents
children 8534f0e3a0db
line source
1 ######################################################################
2 # birthday. Reminder of birthdays and other events in the near future.
3 # $Id: Makefile.in,v 1.3 2000/01/02 19:17:33 andy Exp $
6 CFLAGS=-O2 -Wall -Wstrict-prototypes
9 SRC=birthday.c bdengine.c
10 OBJ=$(SRC:.c=.o)
11 EXE=bday
13 all: ${EXE}
15 ${EXE}: $(OBJ)
16 $(CC) $(LDFLAGS) $(OBJ) -o $@
19 install: birthday birthday.man
20 mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/man/man1
21 cp ${EXE} $(DESTDIR)/usr/bin/${EXE}
22 chmod 0755 $(DESTDIR)/usr/bin/${EXE}
23 cp ${EXE}.man $(DESTDIR)/usr/share/man/man1/${EXE}.1
24 chmod 0644 $(DESTDIR)/usr/share/man/man1/${EXE}.1
27 clean:
28 rm -f *.o
30 realclean: clean
31 rm -f ${EXE}