From 25a65a71c07ac4b5ca2a3ae3ad26d267f3f1cbfc Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sun, 12 Sep 2004 12:06:47 +0000 Subject: [PATCH] Makefiles for ciolib --- src/conio/GNUmakefile | 34 ++++++++++++++++++++++++++++++++++ src/conio/Makefile | 32 ++++++++++++++++++++++++++++++++ src/conio/objects.mk | 12 ++++++++++++ src/conio/targets.mk | 3 +++ 4 files changed, 81 insertions(+) create mode 100644 src/conio/GNUmakefile create mode 100644 src/conio/Makefile create mode 100644 src/conio/objects.mk create mode 100644 src/conio/targets.mk diff --git a/src/conio/GNUmakefile b/src/conio/GNUmakefile new file mode 100644 index 0000000000..bcbf85616d --- /dev/null +++ b/src/conio/GNUmakefile @@ -0,0 +1,34 @@ +# smblib/Makefile + +######################################################################### +# Makefile for Synchronet Message Base Library (SMBLIB) # +# For use with Borland C++ Builder 5+ or Borland C++ 5.5 for Win32 # +# @format.tab-size 4 # +# # +# usage: make # +######################################################################### + +# $Id$ + +# Macros +#DEBUG = 1 # Comment out for release (non-debug) version + +SRC_ROOT = .. +# Cross platform/compiler definitions +include $(SRC_ROOT)/build/Common.gmake # defines clean and output directory rules + +CFLAGS += -I$(XPDEV_SRC) -I$(CIOLIB_SRC) +OBJS += $(OBJODIR)$(DIRSEP)curs_cio$(OFILE) +ifndef NO_X + CFLAGS += -I/usr/X11R6/include + OBJS += $(OBJODIR)$(DIRSEP)console$(OFILE) \ + $(OBJODIR)$(DIRSEP)x_cio$(OFILE) +endif + + +# CIOLIB Library Link Rule +$(CIOLIB): $(OBJS) + @echo Creating $@ ... + $(QUIET)ar rc $@ $^ + $(QUIET)ranlib $@ + diff --git a/src/conio/Makefile b/src/conio/Makefile new file mode 100644 index 0000000000..c6545f88a0 --- /dev/null +++ b/src/conio/Makefile @@ -0,0 +1,32 @@ +# smblib/Makefile + +######################################################################### +# Makefile for Synchronet Message Base Library (SMBLIB) # +# For use with Borland C++ Builder 5+ or Borland C++ 5.5 for Win32 # +# @format.tab-size 4 # +# # +# usage: make # +######################################################################### + +# $Id$ + +# Macros +#DEBUG = 1 # Comment out for release (non-debug) version + +# Enable auto-dependency checking +.autodepend +.cacheautodepend + +SRC_ROOT = .. +# Cross platform/compiler definitions +!include ..\build\Common.bmake # defines clean and output directory rules + +CFLAGS = $(CFLAGS) -I$(XPDEV_SRC) -I$(CIOLIB_SRC) + +# SBBS DLL Link Rule +$(CIOLIB): $(OBJS) + @echo Creating $< ... + -$(QUIET)$(DELETE) $@ + $(QUIET)for %f in ($(OBJS)) do $(QUIET)tlib $@ +%f + + diff --git a/src/conio/objects.mk b/src/conio/objects.mk new file mode 100644 index 0000000000..093c4e0f14 --- /dev/null +++ b/src/conio/objects.mk @@ -0,0 +1,12 @@ +# smblib/objects.mk + +# Make 'include file' listing object files for SMBLIB + +# $Id$ + +# OBJODIR, DIRSEP, and OFILE must be pre-defined + +OBJS = $(OBJODIR)$(DIRSEP)ansi_cio$(OFILE)\ + $(OBJODIR)$(DIRSEP)ciolib$(OFILE)\ + $(OBJODIR)$(DIRSEP)cterm$(OFILE)\ + $(OBJODIR)$(DIRSEP)mouse$(OFILE) diff --git a/src/conio/targets.mk b/src/conio/targets.mk new file mode 100644 index 0000000000..efb82b8c54 --- /dev/null +++ b/src/conio/targets.mk @@ -0,0 +1,3 @@ +# conio/targets.mk +CIOLIB = $(LIBODIR)$(DIRSEP)$(LIBPREFIX)ciolib$(LIBFILE) +default: $(OBJODIR) $(LIBODIR) $(CIOLIB) -- GitLab