aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-03-26 23:47:58 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-03-26 23:47:58 +0000
commit8a633c760080a694fef9aaa7e776f10a7a2c4eaf (patch)
treea6f9c1d749eae9f42e71ec6fbe17167e3e60b7d8 /astro
parentaf57b1be5607afbc8d9d6959412f0fb488561aa8 (diff)
downloadports-8a633c760080a694fef9aaa7e776f10a7a2c4eaf.tar.gz
ports-8a633c760080a694fef9aaa7e776f10a7a2c4eaf.zip
Respect CC and CFLAGS
No response from: Maintainer (a long time ago)
Notes
Notes: svn path=/head/; revision=27072
Diffstat (limited to 'astro')
-rw-r--r--astro/stars/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/astro/stars/Makefile b/astro/stars/Makefile
index bbf386d9e3c1..69d236d10e81 100644
--- a/astro/stars/Makefile
+++ b/astro/stars/Makefile
@@ -17,10 +17,13 @@ MAINTAINER= jseger@FreeBSD.org
USE_X_PREFIX= yes
WRKSRC= $(WRKDIR)/$(PKGNAME)
+CC?= cc
+CFLAGS?= -O2
+
do-build:
- cc -I$(PREFIX)/include -O2 -c $(WRKSRC)/xwin.c -o $(WRKSRC)/xwin.o
- cc -I$(PREFIX)/include -O2 -c $(WRKSRC)/main.c -o $(WRKSRC)/main.o
- cc $(WRKSRC)/main.o $(WRKSRC)/xwin.o -L$(PREFIX)/lib -lX11 -lm -o $(WRKSRC)/stars
+ $(CC) -I$(PREFIX)/include $(CFLAGS) -c $(WRKSRC)/xwin.c -o $(WRKSRC)/xwin.o
+ $(CC) -I$(PREFIX)/include $(CFLAGS) -c $(WRKSRC)/main.c -o $(WRKSRC)/main.o
+ $(CC) $(WRKSRC)/main.o $(WRKSRC)/xwin.o -L$(PREFIX)/lib -lX11 -lm -o $(WRKSRC)/stars
do-install:
$(INSTALL_PROGRAM) $(WRKSRC)/stars $(PREFIX)/bin/stars