Annotation of sbbs/src/conio/makefile, revision 1.1.1.2

1.1       root        1: # conio/Makefile
                      2: 
                      3: #########################################################################
                      4: # Makefile for Synchronet Message Base Library (SMBLIB)                                        #
                      5: # For use with Borland C++ Builder 5+ or Borland C++ 5.5 for Win32      #
                      6: # @format.tab-size 4                                                                                                   #
                      7: #                                                                                                                                              #
                      8: # usage: make                                                                                                                  #
                      9: #########################################################################
                     10: 
1.1.1.2 ! root       11: # $Id: Makefile,v 1.23 2007/09/19 18:54:12 deuce Exp $
1.1       root       12: 
                     13: # To build a DLL, use "make [OPTIONS] DLLIBS=1 dl-mtlib"
                     14: # You *MUST* do a clean between a static and dynamic lib on Win32!
                     15: 
                     16: # Macros
                     17: #DEBUG =       1                               # Comment out for release (non-debug) version
                     18: 
                     19: SRC_ROOT = ..
                     20: # Cross platform/compiler definitions
                     21: !include ..\build\Common.bmake # defines clean and output directory rules
                     22: 
1.1.1.2 ! root       23: !ifdef USE_SDL_AUDIO
        !            24: OBJS           = $(OBJS) $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE)
        !            25: !else
1.1       root       26: !ifdef USE_SDL
                     27: OBJS           = $(OBJS) $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE)
1.1.1.2 ! root       28: OBJS           = $(OBJS) $(MTOBJODIR)$(DIRSEP)SDL_win32_main$(OFILE)
        !            29: OBJS           = $(OBJS) $(MTOBJODIR)$(DIRSEP)sdlfuncs$(OFILE)
        !            30: NEED_BITMAP    = 1
        !            31: !endif
        !            32: !endif
        !            33: 
        !            34: !ifdef NEED_BITMAP
        !            35: OBJS           = $(OBJS) $(MTOBJODIR)$(DIRSEP)bitmap_con$(OFILE)
1.1       root       36: !endif
                     37: 
                     38: #The following is necessary only when DLL-exporting wrapper functions
                     39: !ifdef DLLIBS
                     40: CFLAGS  =       $(CFLAGS) -DCIOLIB_EXPORTS=1 -DWRAPPER_IMPORTS=1
                     41: LDFLAGS =      $(LDFLAGS) -L$(LIBODIR)
                     42: !endif
                     43: 
                     44: CFLAGS = -w-par -w-csu $(CFLAGS) $(XPDEV-MT_CFLAGS) $(CIOLIB-MT_CFLAGS) $(MT_CFLAGS) -I$(CIOLIB_SRC)
                     45: OBJS = $(OBJS) $(MTOBJODIR)$(DIRSEP)win32cio$(OFILE)
                     46: 
                     47: mtlib: $(LIBODIR)$(DIRSEP)ciolib.res
                     48: 
                     49: dl-mtlib: $(LIBODIR)$(DIRSEP)ciolib.res
                     50: 
                     51: $(LIBODIR)$(DIRSEP)ciolib.res: ciolib.rc syncicon64.ico
                     52:        @echo Creating $< ...
                     53:        $(QUIET)brcc32 -fo$@ -32 ciolib.rc
                     54: 
                     55: $(CIOLIB-MT_BUILD): $(OBJS)
                     56:        @echo Creating $< ...
                     57:        -$(QUIET)$(DELETE) $@
                     58:        &$(QUIET)tlib $@ +$**
                     59: 
                     60: $(CIOLIB-MT_SHLIB_BUILD): $(OBJS)
                     61:        @echo Linking $@
                     62:        $(QUIET)$(MKSHLIB) $(MT_LDFLAGS) $(XPDEV-MT_LDFLAGS) -lGi -e$@ $(LDFLAGS) $(SHLIBOPTS) $(XPDEV-MT_LIBS) @&&|
                     63:        $**
                     64:        cw32mt.lib
                     65: |
                     66: 
                     67: test:
                     68:        $(QUIET)$(CC) $(CFLAGS) $(MT_LDFLAGS) $(CIOLIB-MT_LDFLAGS) $(XPDEV-MT_LDFLAGS) keytest.c $(LDFLAGS) $(CIOLIB-MT_LIBS) $(XPDEV-MT_LIBS)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.