summaryrefslogtreecommitdiff
blob: 6497323b9235c5cb61b3ec148a90512dddb777bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- /var/tmp/portage/app-misc/beep-1.2.2-r1/work/beep-1.2.2/Makefile	2002-03-29 09:37:22.000000000 -0800
+++ /tmp/Makefile	2009-03-27 22:19:18.000000000 -0700
@@ -1,17 +1,18 @@
-CC=gcc
-FLAGS=-Wall
+CC ?= gcc
+LDFLAGS ?=
+CFLAGS ?= -Wall
 EXEC_NAME=beep
 INSTALL_DIR=/usr/bin
 MAN_FILE=beep.1.gz
-MAN_DIR=/usr/man/man1
+MAN_DIR=/usr/share/man/man1
 
 default : beep
 
 clean : 
-	rm ${EXEC_NAME}
+	rm -f ${EXEC_NAME}
 
 beep : beep.c
-	${CC} ${FLAGS} -o ${EXEC_NAME} beep.c
+	${CC} ${CFLAGS} ${LDFLAGS} -o ${EXEC_NAME} beep.c
 
 install : 
 	cp ${EXEC_NAME} ${INSTALL_DIR}