d1ef53dcb3
- add missing prototypes. ok naddy@
79 lines
1.6 KiB
Plaintext
79 lines
1.6 KiB
Plaintext
$OpenBSD: patch-makefile,v 1.2 2002/08/02 01:43:47 wcobb Exp $
|
|
--- makefile.orig Thu Aug 1 20:35:34 2002
|
|
+++ makefile Thu Aug 1 20:42:45 2002
|
|
@@ -2,23 +2,14 @@
|
|
# Makefile for luna using BSD cc
|
|
#
|
|
|
|
-MAKEFILE = Makefile
|
|
OPTDEF = -DBOX
|
|
|
|
-# MSDOS
|
|
-CC = cl
|
|
-CFLAGS = -Ox -AS -DANSI -W4 $(OPTDEF)
|
|
-LD = link
|
|
-LDFLAGS = -NOI
|
|
-O = .obj
|
|
-EXE = .exe
|
|
# UNIX
|
|
-#CC = cc
|
|
-#CFLAGS = -Ox -DUNIX $(OPTDEF)
|
|
-#LD = cc
|
|
-#LDFLAGS =
|
|
-#O = .o
|
|
-#EXE =
|
|
+CFLAGS += -DUNIX $(OPTDEF)
|
|
+LD = ${CC}
|
|
+O = .o
|
|
+EXE =
|
|
+IANSILIB = iprintf/iansilib.o
|
|
|
|
# The program name
|
|
PROG = luna$(EXE)
|
|
@@ -26,7 +17,7 @@ PROG = luna$(EXE)
|
|
# All modules
|
|
SRCS = famplan.c luna.c pyramid.c
|
|
OBJS = famplan$(O) luna$(O) pyramid$(O)
|
|
-OBJSIP = iprintf/idoprnt$(O) iprintf/iprintf$(O) iprintf/isprintf$(O)
|
|
+OBJSIP = iprintf/idoprnt$(O) iprintf/iprintf$(O) iprintf/isprintf$(O) $(IANSILIB)
|
|
HDRS = luna.h
|
|
HDRSPR = pyramid.h
|
|
HDRSIP = iprintf/iansilib.h iprintf/iprint.h
|
|
@@ -35,13 +26,15 @@ HDRSIP = iprintf/iansilib.h iprintf/ipri
|
|
#
|
|
all : $(PROG)
|
|
|
|
-# MSDOS
|
|
-$(PROG) : $(OBJS) $(OBJSIP)
|
|
- $(LD) @link.i
|
|
-# $(LD) $(LDFLAGS) $(OBJS) $(OBJSIP), $(PROG);
|
|
+install:
|
|
+ ${BSD_INSTALL_PROGRAM} $(PROG) ${PREFIX}/bin
|
|
+clean:
|
|
+ rm -fr $(OBJS) $(OBJSIP) $(PROG)
|
|
+
|
|
+
|
|
# UNIX
|
|
-#$(PROG) : $(OBJS) $(OBJSIP)
|
|
-# $(LD) -o $(PROG) $(OBJS) $(OBJSIP) $(LDFLAGS)
|
|
+$(PROG) : $(OBJS)
|
|
+ $(LD) -o $(PROG) $(OBJS) $(LDFLAGS)
|
|
|
|
$(OBJS) : $(HDRS)
|
|
|
|
@@ -50,13 +43,8 @@ luna$(O) pyramid$(O) : $(HDRSPR)
|
|
$(OBJS) : $(MAKEFILE)
|
|
|
|
# UNIX
|
|
-#$(OBJSIP) : $(HDRSIP)
|
|
-# ( cd iprintf; make )
|
|
-# MSDOS
|
|
$(OBJSIP) : $(HDRSIP)
|
|
- cd iprintf
|
|
- make
|
|
- cd ..
|
|
+ ( cd iprintf; ${MAKE} )
|
|
#
|
|
# Other dependencies
|
|
#
|