3a9704f71c
Approved by: portmgr@
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
--- makefile.lnx.orig 2009-11-19 23:04:08.000000000 +0800
|
|
+++ makefile.lnx 2014-06-19 21:12:15.392802744 +0800
|
|
@@ -1,15 +1,11 @@
|
|
# MKMF template makefile for protected mode executables.
|
|
-FC = ifort
|
|
-LINKER = ifort
|
|
+LINKER = $(FC)
|
|
PROGRAM = x12a
|
|
-DEST = .
|
|
+DEST = $(PREFIX)/bin
|
|
EXTHDRS =
|
|
-FFLAGS =
|
|
HDRS =
|
|
-LDFLAGS =
|
|
LDMAP =
|
|
LIBS =
|
|
-MAKEFILE = Makefile
|
|
OBJS = aaamain.o abend.o acf.o acfar.o acfdgn.o \
|
|
acfhdr.o addadj.o addaic.o addate.o addfix.o \
|
|
addmul.o addotl.o addsef.o addsub.o addusr.o \
|
|
@@ -237,6 +233,8 @@ SRCS = aaamain.f abend.f acf.
|
|
xrgdiv.f xrgdrv.f xrgtrn.f xrlkhd.f xtrm.f \
|
|
yprmy.f yrly.f
|
|
|
|
+all: $(PROGRAM)
|
|
+
|
|
$(PROGRAM): $(OBJS) $(LIBS)
|
|
$(LINKER) -o $@ $(OBJS) $(LDMAP) $(LIBS) $(LDFLAGS)
|
|
|
|
@@ -244,7 +242,7 @@ clean:; @rm -f $(OBJS)
|
|
|
|
install: $(PROGRAM)
|
|
@echo Installing $(PROGRAM) in $(DEST)
|
|
- @if not $(DEST)x==.x copy $(PROGRAM) $(DEST)
|
|
+ @$(BSD_INSTALL_PROGRAM) $(PROGRAM) $(DESTDIR)$(DEST)
|
|
### OPUS MKMF: Do not remove this line! Automatic dependencies follow.
|
|
|
|
aaamain.o: build.prm cchars.i chrt.cmn error.cmn hiddn.cmn lex.i \
|