mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-30 01:53:17 +03:00
95 lines
1.2 KiB
Plaintext
95 lines
1.2 KiB
Plaintext
#
|
|
#
|
|
# common definitions
|
|
#
|
|
#
|
|
|
|
#
|
|
# empty define, used to terminate lists
|
|
#
|
|
NULL =
|
|
|
|
#
|
|
# target directories
|
|
#
|
|
LIBDIR = $(DEPTH)/lib
|
|
BINDIR = $(DEPTH)/bin
|
|
|
|
#
|
|
# compiler options
|
|
#
|
|
CXXFLAGS = $(LCXXFLAGS) $(GCXXFLAGS) $(CXXOPTIMIZER) $(MKDEPOPT)
|
|
LCXXFLAGS = $(LCXXDEFS) $(LCXXINCS) $(LCXXOPTS)
|
|
GCXXFLAGS = $(GCXXDEFS) $(GCXXINCS) $(GCXXOPTS)
|
|
|
|
#
|
|
# linker options
|
|
#
|
|
LDFLAGS = $(LDOPTS) $(LDLIBS)
|
|
LDOPTS = $(LLDOPTS) $(GLDOPTS)
|
|
LDLIBS = $(LLDLIBS) $(GLDLIBS)
|
|
|
|
#
|
|
# ar options
|
|
#
|
|
ARF = $(AR)
|
|
|
|
#
|
|
# Convenience file list macros:
|
|
#
|
|
SOURCES = $(CXXFILES)
|
|
OBJECTS = $(CXXFILES:.cpp=.o)
|
|
TARGETS = $(BINTARGET) $(LIBTARGET)
|
|
|
|
#
|
|
# always unsatisfied target
|
|
#
|
|
_FORCE = $(COMMONPREF)_force
|
|
|
|
#
|
|
#
|
|
# common rules
|
|
#
|
|
#
|
|
|
|
#
|
|
# default target. makefiles must define a target named `targets'.
|
|
#
|
|
$(COMMONPREF)default: targets
|
|
|
|
#
|
|
# always unsatisfied target
|
|
#
|
|
$(_FORCE):
|
|
|
|
#
|
|
# cleaners
|
|
#
|
|
COMMONTARGETS = clean clobber
|
|
$(COMMONPREF)clean: $(_FORCE)
|
|
$(RM) $(DIRT)
|
|
|
|
$(COMMONPREF)clobber: clean $(_FORCE)
|
|
$(RM) $(TARGETS)
|
|
|
|
#
|
|
# implicit target rules
|
|
#
|
|
.SUFFIXES: .cpp .o
|
|
|
|
.cpp.o:
|
|
$(MKDEPPRE)
|
|
$(CXX) $(CXXFLAGS) -c $<
|
|
$(MKDEPPOST)
|
|
|
|
#
|
|
# platform stuff
|
|
#
|
|
include $(DEPTH)/Make-linux
|
|
#include $(DEPTH)/Make-solaris
|
|
|
|
#
|
|
# load dependencies
|
|
#
|
|
sinclude $(MKDEPFILE)
|