executables are now built into a common area on unix (and they
already were on win32).
This commit is contained in:
parent
f15c9df85b
commit
f395bc6e12
|
@ -25,6 +25,11 @@ CXXOPTIMIZER = -g
|
||||||
GLDLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXtst
|
GLDLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXtst
|
||||||
GLDOPTS = -L$(LIBDIR)
|
GLDOPTS = -L$(LIBDIR)
|
||||||
|
|
||||||
|
#
|
||||||
|
# binary stuff
|
||||||
|
#
|
||||||
|
BINTARGET = $(BINDIR)/$(TARGET)
|
||||||
|
|
||||||
#
|
#
|
||||||
# library stuff
|
# library stuff
|
||||||
#
|
#
|
||||||
|
|
|
@ -26,6 +26,11 @@ CXXOPTIMIZER = -g
|
||||||
GLDLIBS = -L$(LIBDIR) -lsocket -lnsl -lposix4
|
GLDLIBS = -L$(LIBDIR) -lsocket -lnsl -lposix4
|
||||||
GLDOPTS = -z muldefs
|
GLDOPTS = -z muldefs
|
||||||
|
|
||||||
|
#
|
||||||
|
# binary stuff
|
||||||
|
#
|
||||||
|
BINTARGET = $(BINDIR)/$(TARGET)
|
||||||
|
|
||||||
#
|
#
|
||||||
# library stuff
|
# library stuff
|
||||||
#
|
#
|
||||||
|
|
|
@ -13,7 +13,7 @@ NULL =
|
||||||
# target directories
|
# target directories
|
||||||
#
|
#
|
||||||
LIBDIR = $(DEPTH)/lib
|
LIBDIR = $(DEPTH)/lib
|
||||||
TARGETDIR = $(DEPTH)/bin
|
BINDIR = $(DEPTH)/bin
|
||||||
|
|
||||||
#
|
#
|
||||||
# compiler options
|
# compiler options
|
||||||
|
|
|
@ -4,7 +4,7 @@ include $(DEPTH)/Makecommon
|
||||||
#
|
#
|
||||||
# target file
|
# target file
|
||||||
#
|
#
|
||||||
TARGETS = client
|
TARGET = client
|
||||||
|
|
||||||
#
|
#
|
||||||
# source files
|
# source files
|
||||||
|
@ -37,8 +37,9 @@ LLDLIBS = \
|
||||||
-lpthread \
|
-lpthread \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
targets: $(TARGETS)
|
targets: $(BINTARGET)
|
||||||
|
|
||||||
$(TARGETS): $(OBJECTS) $(DEPLIBS)
|
$(BINTARGET): $(OBJECTS) $(DEPLIBS)
|
||||||
|
if test ! -d $(BINDIR); then $(MKDIR) $(BINDIR); fi
|
||||||
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)
|
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ include $(DEPTH)/Makecommon
|
||||||
#
|
#
|
||||||
# target file
|
# target file
|
||||||
#
|
#
|
||||||
TARGETS = server
|
TARGET = server
|
||||||
|
|
||||||
#
|
#
|
||||||
# source files
|
# source files
|
||||||
|
@ -40,8 +40,9 @@ LLDLIBS = \
|
||||||
-lpthread \
|
-lpthread \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
targets: $(TARGETS)
|
targets: $(BINTARGET)
|
||||||
|
|
||||||
$(TARGETS): $(OBJECTS) $(DEPLIBS)
|
$(BINTARGET): $(OBJECTS) $(DEPLIBS)
|
||||||
|
if test ! -d $(BINDIR); then $(MKDIR) $(BINDIR); fi
|
||||||
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)
|
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue