freebsd-ports/emulators/x48/files/patch-Imakefile
Alexey Dokuchaev 59439582e5 - Add SX ROM revision E (rev J does not work)
- Fix terminal allocation code under FreeBSD
- Catch up with PHK's cuaa->cuad rework in -CURRENT
- Avoid direct use of `unzip' command in Makefile in favor of ${UNZIP_CMD}
- Utilize DATADIR and DOCSDIR marcos in pkg-plist
- SIZEify
- Take maintainership

Approved by:	fjoe (mentor, implicit)
2004-11-22 12:27:16 +00:00

58 lines
2.1 KiB
Text

--- src/Imakefile.orig Sun Jul 4 17:04:21 1999
+++ src/Imakefile Sat Jun 28 19:01:04 2003
@@ -26,7 +26,7 @@
UTILS = $(TOP)/utils
READLINE = $(TOP)/readline
READLINELIB = $(READLINE)/libreadline.a
-EXTRA_LIBRARIES =
+EXTRA_LIBRARIES = -lutil
#ifdef HAVE_XSHM
# define XSHM_DEF -DHAVE_XSHM
@@ -60,7 +60,7 @@
LDOPTIONS = LDOPTIONS_DEF
#endif
- DEFINES = -I/usr/openwin/include UNIX_DEF XSHM_DEF READLINE_DEF
+ DEFINES = UNIX_DEF XSHM_DEF READLINE_DEF
HDRS = annunc.h append.h buttons.h constants.h debugger.h \
device.h disasm.h errors.h global.h hp.h hp48.h \
hp48_emu.h hp48char.h icon.h mmu.h options.h resources.h \
@@ -87,9 +87,9 @@
CO = co -l
TARFILES = Imakefile X48.ad $(TARS1) $(SRCS2) $(SRCS3) $(SRCS4) $(HDRS)
-all:: $(BIN)/x48 $(BIN)/dump2rom $(BIN)/checkrom $(BIN)/mkcard
+all:: x48 dump2rom checkrom mkcard
- PROGRAMS = $(BIN)/x48 $(BIN)/dump2rom $(BIN)/checkrom $(BIN)/mkcard
+ PROGRAMS = x48 dump2rom checkrom mkcard
depend:: version.c X48.ad.h
@@ -102,16 +102,20 @@
RemoveTargetProgram($@) @@\
$(CC) -o $@ $(LDOPTIONS) $(OBJS4) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
-SaberProgramTarget(program,$(SRCS4),$(OBJS4),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
InstallManPage(program,$(MANDIR))
#endif /* ComplexProgramTarget_4 */
-ComplexProgramTarget_1($(BIN)/x48, $(X48LIBS),)
-ComplexProgramTarget_2($(BIN)/dump2rom,,)
-ComplexProgramTarget_3($(BIN)/checkrom,,)
-ComplexProgramTarget_4($(BIN)/mkcard,,)
+NormalProgramTarget(x48, $(OBJS1),, $(X48LIBS),)
+NormalProgramTarget(dump2rom, $(OBJS2),,,)
+NormalProgramTarget(checkrom, $(OBJS3),,,)
+NormalProgramTarget(mkcard, $(OBJS4),,,)
+
+InstallProgram(x48, $(BINDIR))
+InstallProgram(dump2rom, $(BINDIR))
+InstallProgram(checkrom, $(BINDIR))
+InstallProgram(mkcard, $(BINDIR))
InstallAppDefaults(X48)