Skip to content
Snippets Groups Projects
Commit 4a7ea90a authored by deuce's avatar deuce
Browse files

Updates for new make system...

mouse.c and ciolib.c need to include <stdlib.h> for malloc() etc.
parent e28d1798
No related branches found
No related tags found
No related merge requests found
CIOLIB-MT = $(CIOLIB_SRC)$(DIRSEP)$(LIBODIR)$(DIRSEP)$(LIBPREFIX)ciolib$(LIBFILE) CIOLIB-MT = $(CIOLIB_SRC)$(DIRSEP)$(LIBODIR)$(DIRSEP)$(LIBPREFIX)ciolib-mt$(LIBFILE)
CIOLIB-MT_CFLAGS = -I$(CIOLIB_SRC) CIOLIB-MT_CFLAGS = -I$(CIOLIB_SRC)
CIOLIB-MT_LDFLAGS = -L$(CIOLIB_SRC)$(DIRSEP)$(LIBODIR) CIOLIB-MT_LDFLAGS = -L$(CIOLIB_SRC)$(DIRSEP)$(LIBODIR)
CIOLIB-MT_LIBS = -lciolib CIOLIB-MT_LIBS = -lciolib-mt
# 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 = .. SRC_ROOT = ..
# Cross platform/compiler definitions # Cross platform/compiler definitions
include $(SRC_ROOT)/build/Common.gmake # defines clean and output directory rules include $(SRC_ROOT)/build/Common.gmake # defines clean and output directory rules
CFLAGS += -I$(XPDEV_SRC) -I$(CIOLIB_SRC) CFLAGS += $(XPDEV-MT_CFLAGS) $(CIOLIB-MT_CFLAGS)
OBJS += $(OBJODIR)$(DIRSEP)curs_cio$(OFILE)
OBJS += $(MTOBJODIR)$(DIRSEP)curs_cio$(OFILE)
ifndef NO_X ifndef NO_X
CFLAGS += -I/usr/X11R6/include CFLAGS += -I/usr/X11R6/include
OBJS += $(OBJODIR)$(DIRSEP)console$(OFILE) \ OBJS += $(MTOBJODIR)$(DIRSEP)console$(OFILE) \
$(OBJODIR)$(DIRSEP)x_cio$(OFILE) $(MTOBJODIR)$(DIRSEP)x_cio$(OFILE)
endif endif
# CIOLIB Library Link Rule # CIOLIB Library Link Rule
......
...@@ -13,10 +13,6 @@ ...@@ -13,10 +13,6 @@
# Macros # Macros
#DEBUG = 1 # Comment out for release (non-debug) version #DEBUG = 1 # Comment out for release (non-debug) version
# Enable auto-dependency checking
.autodepend
.cacheautodepend
SRC_ROOT = .. SRC_ROOT = ..
# Cross platform/compiler definitions # Cross platform/compiler definitions
!include ..\build\Common.bmake # defines clean and output directory rules !include ..\build\Common.bmake # defines clean and output directory rules
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
#include <stdlib.h> /* malloc */ #include <stdlib.h> /* malloc */
#include <stdio.h> #include <stdio.h>
#include <threadwrap.h>
#define CIOLIB_NO_MACROS #define CIOLIB_NO_MACROS
#include "ciolib.h" #include "ciolib.h"
...@@ -371,10 +373,10 @@ char *ciolib_getpass(const char *prompt) ...@@ -371,10 +373,10 @@ char *ciolib_getpass(const char *prompt)
CIOLIB_INIT(); CIOLIB_INIT();
ciolib_cputs((char *)prompt); ciolib_cputs((char *)prompt);
while((ch=getch())!='\n') { while((ch=ciolib_getch())!='\n') {
switch(ch) { switch(ch) {
case 0: /* Skip extended keys */ case 0: /* Skip extended keys */
getch(); ciolib_getch();
break; break;
case '\r': /* Skip \r (ToDo: Should this be treeated as a \n? */ case '\r': /* Skip \r (ToDo: Should this be treeated as a \n? */
break; break;
......
#include <stdlib.h>
#include <genwrap.h> #include <genwrap.h>
#include <ciolib.h> #include <ciolib.h>
#include <keys.h> #include <keys.h>
......
#include <stdlib.h>
#include <genwrap.h> #include <genwrap.h>
#include <semwrap.h> #include <semwrap.h>
#include <threadwrap.h> #include <threadwrap.h>
......
# smblib/objects.mk
# Make 'include file' listing object files for SMBLIB
# $Id$
# OBJODIR, DIRSEP, and OFILE must be pre-defined
OBJS = $(MTOBJODIR)$(DIRSEP)ansi_cio$(OFILE)\ OBJS = $(MTOBJODIR)$(DIRSEP)ansi_cio$(OFILE)\
$(MTOBJODIR)$(DIRSEP)ciolib$(OFILE)\ $(MTOBJODIR)$(DIRSEP)ciolib$(OFILE)\
$(MTOBJODIR)$(DIRSEP)cterm$(OFILE)\ $(MTOBJODIR)$(DIRSEP)cterm$(OFILE)\
......
# conio/targets.mk # conio/targets.mk
default: mtlib mtlib: $(MTOBJODIR) $(LIBODIR) $(CIOLIB-MT)
mtlib: $(LIBODIR) $(CIOLIB-MT)
...@@ -30,6 +30,7 @@ int win32_putch(int); ...@@ -30,6 +30,7 @@ int win32_putch(int);
int win32_wherex(void); int win32_wherex(void);
int win32_wherey(void); int win32_wherey(void);
void win32_settitle(const char *title); void win32_settitle(const char *title);
int win32_initciolib(long inmode);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment