mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
32 lines
874 B
Plaintext
32 lines
874 B
Plaintext
--- Makefile.orig Sun Jan 31 01:30:22 1999
|
|
+++ Makefile Sat Jul 1 17:49:53 2000
|
|
@@ -1,20 +1,20 @@
|
|
-CC = gcc
|
|
+CC ?= gcc
|
|
BINARYNAME = gyroscope
|
|
-BIN_DIR = /usr/local/bin/
|
|
-GTKINC = `gtk-config --cflags` -Wall -O2
|
|
-GTKLIB = `gtk-config --libs`
|
|
+BIN_DIR = ${PREFIX}/bin
|
|
+GTKINC = `$(GTK_CONFIG) --cflags`
|
|
+GTKLIB = `$(GTK_CONFIG) --libs`
|
|
|
|
$(BINARYNAME): main.o gtkcolorsel.o
|
|
- $(CC) -o $(BINARYNAME) main.o gtkcolorsel.o $(GTKLIB)
|
|
+ $(CC) $(CFLAGS) -o $(BINARYNAME) main.o gtkcolorsel.o $(GTKLIB)
|
|
|
|
gtkcolorsel.o:gtkcolorsel.c gtkcolorsel.h
|
|
- $(CC) gtkcolorsel.c -c $(GTKINC)
|
|
+ $(CC) $(CFLAGS) gtkcolorsel.c -c $(GTKINC)
|
|
|
|
main.o: main.c
|
|
- $(CC) main.c -c $(GTKINC)
|
|
+ $(CC) $(CFLAGS) main.c -c $(GTKINC)
|
|
|
|
clean:
|
|
-@ rm core -f *.o ./$(BINARYNAME)
|
|
|
|
install:
|
|
- cp ./$(BINARYNAME) $(BIN_DIR)$(BINARYNAME)
|
|
+ ${BSD_INSTALL_PROGRAM} ${BINARYNAME} ${BIN_DIR}/${BINARYNAME}
|