"Fossies" - the Fresh Open Source Software Archive

Member "ansifilter-2.18/src/makefile" (30 Jan 2021, 944 Bytes) of package /linux/privat/ansifilter-2.18.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "makefile": 2.16_vs_2.17.

    1 # Simple Makefile for ANSIFilter
    2 # This file will compile the ansifilter binary.
    3 # See INSTALL for instructions.
    4 
    5 # afl-g++ for preparing fuzzing tests
    6 
    7 CXX ?= g++
    8 #CC ?= clang++
    9 
   10 # Added -std=c++11 because of auto_ptr to unique_ptr transition
   11 CXXFLAGS := -Wall -O2 -DNDEBUG -std=c++11 -fPIC -D_FILE_OFFSET_BITS=64 $(CXXFLAGS)
   12 
   13 SOURCES=arg_parser.o stringtools.o cmdlineoptions.o main.o platform_fs.o\
   14 codegenerator.o htmlgenerator.o pangogenerator.o texgenerator.o latexgenerator.o rtfgenerator.o svggenerator.o\
   15 plaintextgenerator.o bbcodegenerator.o elementstyle.o stylecolour.o
   16 
   17 OBJECTS=$(SOURCES:.cpp=.o)
   18 EXECUTABLE=ansifilter
   19 
   20 all: $(SOURCES) $(EXECUTABLE)
   21 
   22 $(EXECUTABLE): $(OBJECTS)
   23 	$(CXX) $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJECTS) -o $@
   24 
   25 .cpp.o:
   26 	$(CXX) -c $(CXXFLAGS) $(EXTRA_CXXFLAGS) $< -o $@
   27 
   28 clean:
   29 	@rm -f *.o
   30 	@rm -f ./ansifilter
   31 	@rm -f ./qt-gui/*.o
   32 	@rm -f ./qt-gui/.qmake.stash
   33 	@rm -f ./qt-gui/ansifilter-gui
   34 	@rm -f ./.deps/*