mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
67 lines
1.6 KiB
Plaintext
67 lines
1.6 KiB
Plaintext
--- ./Makefile.orig 2011-02-14 08:49:25.000000000 +0100
|
|
+++ ./Makefile 2011-04-05 18:39:35.000000000 +0200
|
|
@@ -4,21 +4,18 @@
|
|
|
|
# change this if you want to use 'make install' and have it go
|
|
# somewhere else:
|
|
-INSTALLDIR = /usr/local/bin
|
|
+PREFIX?= /usr/local
|
|
|
|
-ARCH = `uname -s | sed -e 's/ /-/g'`
|
|
+OS = `uname -s | sed -e 's/ /-/g'`
|
|
LDFLAGS = `./ldflags`
|
|
|
|
-OBJS = arch/${ARCH}/getload.o \
|
|
- arch/${ARCH}/terminfo.o \
|
|
+OBJS = arch/${OS}/getload.o \
|
|
+ arch/${OS}/terminfo.o \
|
|
${NULL}
|
|
|
|
-# this is what I use most places...
|
|
-CC=gcc -pedantic -Wall -Werror
|
|
-
|
|
# for the things in the sub-directory:
|
|
INCLUDES = -I$${PWD:-.} \
|
|
- -I$${PWD:-.}/arch/${ARCH} \
|
|
+ -I$${PWD:-.}/arch/${OS} \
|
|
-I$${PWD:-.}/arch/default
|
|
|
|
# Debugging compiles?
|
|
@@ -26,7 +23,7 @@
|
|
|
|
VERSION = -DVERSION='"'`cat Version`'"'
|
|
|
|
-CFLAGS = $(INCLUDES) $(OTHER_FLAGS) $(DEBUG) $(VERSION)
|
|
+CFLAGS = $(INCLUDES) $(OTHER_FLAGS) $(DEBUG) $(VERSION) -pedantic -Wall
|
|
|
|
# most people won't want loader, so don't bother building it:
|
|
# PROGRAMS = archbuild loader
|
|
@@ -57,12 +54,12 @@
|
|
ln -s FreeBSD $@
|
|
|
|
$(ARCHLINKS_THISARCH):
|
|
- ln -s ${ARCH} $@
|
|
+ ln -s ${OS} $@
|
|
|
|
archlinks: $(ARCHLINKS)
|
|
|
|
archbuild: archlinks
|
|
- make archtest ttyload ARCH=$(ARCH)
|
|
+ make archtest ttyload OS=$(OS)
|
|
|
|
ttyload.c: ttyload.h Version
|
|
touch ttyload.c
|
|
@@ -82,7 +79,11 @@
|
|
|
|
# install, gently. not much to it:
|
|
install: $(PROGRAMS)
|
|
- /bin/cp ttyload ${INSTALLDIR}/ttyload
|
|
+ install -m 755 ttyload ${PREFIX}/bin/
|
|
+
|
|
+deinstall:
|
|
+ rm -f ${PREFIX}/bin/ttyload
|
|
+
|
|
|
|
# because different systems' make have different behaviors on how they
|
|
# deal with building stuff in subdirectories, and because I don't feel
|