mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 15:26:16 +00:00
65 lines
1.4 KiB
Makefile
65 lines
1.4 KiB
Makefile
|
|
||
|
|
||
|
#############################################################################
|
||
|
# Simple make file for compiling NeL examples
|
||
|
|
||
|
#############################################################################
|
||
|
# Setting up the compiler settings...
|
||
|
|
||
|
# The names of the executables
|
||
|
CXX = c++
|
||
|
RM = rm -f
|
||
|
MAKE = make
|
||
|
|
||
|
# The flags for the C++ compiler
|
||
|
CXXFLAGS = -g -pipe -D_REENTRANT -D_GNU_SOURCE \
|
||
|
-I$(HOME)/cvs/code/nel/include \
|
||
|
-I/usr/include/stlport \
|
||
|
-I/usr/include
|
||
|
|
||
|
# The flags for the linker
|
||
|
LDFLAGS = -L$(HOME)/install/release/lib \
|
||
|
-L/usr/local/lib \
|
||
|
-lnelmisc \
|
||
|
-lstlport \
|
||
|
-lpthread \
|
||
|
-ldl \
|
||
|
-lrt
|
||
|
|
||
|
#############################################################################
|
||
|
# The bit that changes each time we cut paste and hack this file :o)
|
||
|
|
||
|
# The list of targets to build
|
||
|
TARGETS = bnp_make
|
||
|
|
||
|
# The default build rule
|
||
|
all: $(TARGETS)
|
||
|
|
||
|
bnp_make: main.o
|
||
|
$(CXX) -o $@ $< $(LDFLAGS)
|
||
|
|
||
|
|
||
|
#############################################################################
|
||
|
# A few basic default rules and intrinsic rules
|
||
|
|
||
|
# Start off by over-riding the default build rules with our own intrinsics
|
||
|
.SUFFIXES:
|
||
|
.SUFFIXES: .cpp .o
|
||
|
.cpp.o:
|
||
|
$(CXX) -c $(CXXFLAGS) $<
|
||
|
|
||
|
|
||
|
# remove object files and core (if any)
|
||
|
clean:
|
||
|
$(RM) *.o core
|
||
|
|
||
|
# remove object files, core dump, and executable (if any)
|
||
|
distclean:
|
||
|
$(MAKE) clean
|
||
|
$(RM) $(TARGET)
|
||
|
|
||
|
# make the thing again from scratch
|
||
|
again:
|
||
|
$(MAKE) distclean
|
||
|
$(MAKE) $(TARGET)
|