diff 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 (2007-12-16)
parents
children 8534f0e3a0db
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Sun Dec 16 22:26:48 2007 +0100
@@ -0,0 +1,31 @@
+######################################################################
+# birthday. Reminder of birthdays and other events in the near future.
+# $Id: Makefile.in,v 1.3 2000/01/02 19:17:33 andy Exp $
+
+
+CFLAGS=-O2 -Wall -Wstrict-prototypes
+
+
+SRC=birthday.c bdengine.c
+OBJ=$(SRC:.c=.o)
+EXE=bday
+
+all: ${EXE}
+
+${EXE}: $(OBJ)
+	$(CC) $(LDFLAGS) $(OBJ) -o $@
+
+
+install: birthday birthday.man
+	mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/man/man1
+	cp ${EXE} $(DESTDIR)/usr/bin/${EXE}
+	chmod 0755 $(DESTDIR)/usr/bin/${EXE}
+	cp ${EXE}.man $(DESTDIR)/usr/share/man/man1/${EXE}.1
+	chmod 0644 $(DESTDIR)/usr/share/man/man1/${EXE}.1
+
+
+clean:
+	rm -f *.o
+
+realclean: clean
+	rm -f ${EXE}