Skip to content
Snippets Groups Projects
Commit 9c02414b authored by deuce's avatar deuce
Browse files

Libs got in LIBODIR, objects go in OBJODIR.

Reasoning for this is so you can have xpdev and xpdev-mt libraries in the
same location but have their respective object files separate.

Don't forget to add $(LIBPREFIX) to library filenames.
parent 73842c48
No related branches found
No related tags found
No related merge requests found
XPDEV := ../xpdev/
# smblib/Makefile
include $(XPDEV)Common.gmake
include Common.gmake
#########################################################################
# 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)
# SMBLIB Library Link Rule
$(SMBLIB): $(OBJS)
@echo Creating $< ...
$(QUIET)ar rc $@ $^
$(QUIET)ranlib $@
library: $(SMBLIB_TARGET)
......@@ -4,17 +4,17 @@
# $Id$
# LIBODIR, DIRSEP, and OFILE must be pre-defined
# OBJODIR, DIRSEP, and OFILE must be pre-defined
OBJS = $(LIBODIR)$(DIRSEP)smbadd$(OFILE)\
$(LIBODIR)$(DIRSEP)smballoc$(OFILE)\
$(LIBODIR)$(DIRSEP)smbdump$(OFILE)\
$(LIBODIR)$(DIRSEP)smbfile$(OFILE)\
$(LIBODIR)$(DIRSEP)smbhash$(OFILE)\
$(LIBODIR)$(DIRSEP)smblib$(OFILE)\
$(LIBODIR)$(DIRSEP)smbstr$(OFILE)\
$(LIBODIR)$(DIRSEP)smbtxt$(OFILE)\
$(LIBODIR)$(DIRSEP)crc16$(OFILE)\
$(LIBODIR)$(DIRSEP)crc32$(OFILE)\
$(LIBODIR)$(DIRSEP)md5$(OFILE)\
$(LIBODIR)$(DIRSEP)lzh$(OFILE)
OBJS = $(OBJODIR)$(DIRSEP)smbadd$(OFILE)\
$(OBJODIR)$(DIRSEP)smballoc$(OFILE)\
$(OBJODIR)$(DIRSEP)smbdump$(OFILE)\
$(OBJODIR)$(DIRSEP)smbfile$(OFILE)\
$(OBJODIR)$(DIRSEP)smbhash$(OFILE)\
$(OBJODIR)$(DIRSEP)smblib$(OFILE)\
$(OBJODIR)$(DIRSEP)smbstr$(OFILE)\
$(OBJODIR)$(DIRSEP)smbtxt$(OFILE)\
$(OBJODIR)$(DIRSEP)crc16$(OFILE)\
$(OBJODIR)$(DIRSEP)crc32$(OFILE)\
$(OBJODIR)$(DIRSEP)md5$(OFILE)\
$(OBJODIR)$(DIRSEP)lzh$(OFILE)
# smblib/targets.mk
SMBLIB = $(LIBODIR)$(DIRSEP)smb$(LIBFILE)
default: $(LIBODIR) $(SMBLIB)
SMBLIB = $(LIBODIR)$(DIRSEP)$(LIBPREFIX)smb$(LIBFILE)
default: $(OBJODIR) $(LIBODIR) $(SMBLIB)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment