|
|
1.1 ! root 1: # GNUmakefile ! 2: ! 3: ######################################################################### ! 4: # Makefile for Synchronet monitor for Unix # ! 5: # For use with GNU make and GNU C Compiler or Borland Kylix C++ # ! 6: # @format.tab-size 4, @format.use-tabs true # ! 7: # # ! 8: # gcc: gmake # ! 9: # Borland (still in testing/debuging stage): gmake bcc=1 # ! 10: # # ! 11: # Optional build targets: dlls, utils, mono, all (default) # ! 12: ######################################################################### ! 13: ! 14: # $Id: GNUmakefile,v 1.1 2006/05/14 06:37:54 deuce Exp $ ! 15: ! 16: SRC_ROOT = ../.. ! 17: include $(SRC_ROOT)/build/Common.gmake ! 18: include $(SRC_ROOT)/sbbs3/sbbsdefs.mk ! 19: ! 20: ifeq ($(os),sunos) ! 21: LDFLAGS += -lnsl ! 22: endif ! 23: ! 24: vpath %.c .. ! 25: ! 26: CFLAGS += $(SBBSDEFS) -I.. $(SMBLIB_CFLAGS) $(XPDEV-MT_CFLAGS) `pkg-config libglade-2.0 --cflags` ! 27: # Hopefully, -Wl,-E exports all symbols dynamically everywhere. ! 28: LDFLAGS += -Wl,-E -L../$(LIBODIR) `pkg-config libglade-2.0 --libs` $(SMBLIB_LDFLAGS) $(XPDEV-MT_LDFLAGS) $(MT_LDFLAGS) ! 29: ! 30: # Because pkg-config for libglade uses --rpath, we need to also, LD_RUN_PATH ! 31: # won't work. :-( ! 32: ifdef SBBSDIR ! 33: LDFLAGS += -Wl,--rpath -Wl,$(SBBSDIR)/exec ! 34: endif ! 35: PARENT_DIR = $(shell dirname `pwd`) ! 36: LDFLAGS += -Wl,--rpath -Wl,$(PARENT_DIR)/$(LIBODIR) ! 37: ifeq ($(os),sunos) ! 38: LDFLAGS += -Wl,--rpath -Wl,/opt/sfw/gcc-3/lib ! 39: endif ! 40: ! 41: $(GTKUSERLIST): $(OBJS) ! 42: @echo Linking $@ ! 43: $(QUIET)$(CC) $(LDFLAGS) $(OBJS) -o $@ -lsbbs $(SMBLIB_LIBS) $(XPDEV-MT_LIBS)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.