"Fossies" - the Fresh Open Source Software Archive

Member "src/Build/Include/Makefile.inc" (10 Oct 2018, 1728 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) fasm source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "Makefile.inc" see the Fossies "Dox" file reference documentation.

    1 #
    2 # Derived from source code of TrueCrypt 7.1a, which is
    3 # Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
    4 # by the TrueCrypt License 3.0.
    5 #
    6 # Modifications and additions to the original source code (contained in this file)
    7 # and all other portions of this file are Copyright (c) 2013-2017 IDRIX
    8 # and are governed by the Apache License 2.0 the full text of which is
    9 # contained in the file License.txt included in VeraCrypt binary and source
   10 # code distribution packages.
   11 #
   12 
   13 $(NAME): $(NAME).a
   14 
   15 clean:
   16     @echo Cleaning $(NAME)
   17     rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJSEX) $(OBJS:.o=.d) *.gch
   18 
   19 %.o: %.c
   20     @echo Compiling $(<F)
   21     $(CC) $(CFLAGS) -c $< -o $@
   22 
   23 %.o: %.cpp
   24     @echo Compiling $(<F)
   25     $(CXX) $(CXXFLAGS) -c $< -o $@
   26     
   27 %.o: %.S
   28     @echo Compiling $(<F)
   29     $(CC) $(CFLAGS) -c $< -o $@
   30 
   31 ifeq "$(PLATFORM)" "MacOSX"
   32 %.o: %.asm
   33     @echo Assembling $(<F)
   34     $(AS) $(ASFLAGS32) -f macho32 -o $@.32 $<
   35     $(AS) $(ASFLAGS64) -f macho64 -o $@.64 $<
   36     lipo -create $@.32 $@.64 -output $@
   37 else
   38 %.o: %.asm
   39     @echo Assembling $(<F)
   40     $(AS) $(ASFLAGS) -o $@ $<
   41 endif
   42 
   43 # Precompiled headers
   44 %.h.gch: %.h
   45     @echo Precompiling $(<F)
   46     $(CXX) $(CXXFLAGS) -g0 -c $< || (rm -f $(<F).gch && exit 1)
   47 
   48 
   49 # Embedded files
   50 OD_BIN := od -v -t u1 -A n
   51 TR_SED_BIN := tr '\n' ' ' | tr -s ' ' ',' | sed -e 's/^,//g' -e 's/,$$/n/' | tr 'n' '\n'
   52 
   53 %.xml.h: %.xml
   54     @echo Converting $(<F)
   55     $(OD_BIN) $< | $(TR_SED_BIN) >$@
   56 
   57 %.txt.h: %.txt
   58     @echo Converting $(<F)
   59     $(OD_BIN) $< | $(TR_SED_BIN) >$@
   60 
   61 %.bmp.h: %.bmp
   62     @echo Converting $(<F)
   63     $(OD_BIN) $< | $(TR_SED_BIN) >$@
   64 
   65 
   66 # Dependencies
   67 -include $(OBJS:.o=.d) $(OBJSEX:.oo=.d)
   68 
   69 
   70 $(NAME).a: $(OBJS) $(OBJSEX)
   71     @echo Updating library $@
   72     $(AR) $(AFLAGS) -rcu $@ $(OBJS) $(OBJSEX)
   73     $(RANLIB) $@