451c73b09f
use USE_GETOPT_LONG instead. respect CC, CFLAGS, PREFIX.
32 lines
679 B
Text
32 lines
679 B
Text
--- Makefile.orig Thu Aug 8 21:24:33 2002
|
|
+++ Makefile Sun Jul 6 05:16:01 2003
|
|
@@ -1,13 +1,13 @@
|
|
# Makefile - makefile for nomarch
|
|
|
|
-CC=gcc
|
|
-CFLAGS=-O2 -Wall
|
|
+CC?= gcc
|
|
+CFLAGS?=-O2 -Wall
|
|
|
|
# Set BINDIR to directory for binary,
|
|
# MANDIR to directory for man page.
|
|
# Usually it will be simpler to just set PREFIX.
|
|
#
|
|
-PREFIX=/usr/local
|
|
+PREFIX?=/usr/local
|
|
BINDIR=$(PREFIX)/bin
|
|
MANDIR=$(PREFIX)/man/man1
|
|
|
|
@@ -18,8 +18,11 @@
|
|
|
|
all: nomarch
|
|
|
|
+main.o: main.c
|
|
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o main.o -c main.c
|
|
+
|
|
nomarch: $(OBJ)
|
|
- $(CC) $(CFLAGS) -o nomarch $(OBJ)
|
|
+ $(CC) $(CFLAGS) -o nomarch $(OBJ) $(LDFLAGS)
|
|
|
|
installdirs:
|
|
/bin/sh ./mkinstalldirs $(BINDIR) $(MANDIR)
|