comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:22b6e71de68e
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 $
4
5
6 CFLAGS=-O2 -Wall -Wstrict-prototypes
7
8
9 SRC=birthday.c bdengine.c
10 OBJ=$(SRC:.c=.o)
11 EXE=bday
12
13 all: ${EXE}
14
15 ${EXE}: $(OBJ)
16 $(CC) $(LDFLAGS) $(OBJ) -o $@
17
18
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
25
26
27 clean:
28 rm -f *.o
29
30 realclean: clean
31 rm -f ${EXE}