misc/libphysfs/lzma/C/Archive/7z/makefile
changeset 12213 bb5522e88ab2
equal deleted inserted replaced
12212:ea891871f481 12213:bb5522e88ab2
       
     1 PROG = 7zDec.exe
       
     2 
       
     3 !IFDEF CPU
       
     4 LIBS = $(LIBS) bufferoverflowU.lib 
       
     5 CFLAGS = $(CFLAGS) -GS- -Zc:forScope -WX -GS- -Gy -W4 
       
     6 !ENDIF
       
     7 
       
     8 !IFNDEF O
       
     9 !IFDEF CPU
       
    10 O=$(CPU)
       
    11 !ELSE
       
    12 O=O
       
    13 !ENDIF
       
    14 !ENDIF
       
    15 
       
    16 CFLAGS = $(CFLAGS) -nologo -c -Fo$O/ -D_LZMA_IN_CB
       
    17 CFLAGS_O1 = $(CFLAGS) -O1
       
    18 CFLAGS_O2 = $(CFLAGS) -O2
       
    19 
       
    20 LFLAGS = $(LFLAGS) -nologo -OPT:NOWIN98 -OPT:REF
       
    21 
       
    22 PROGPATH = $O\$(PROG)
       
    23 
       
    24 COMPL_O1   = $(CPP) $(CFLAGS_O1) $**
       
    25 COMPL_O2   = $(CPP) $(CFLAGS_O2) $**
       
    26 COMPL      = $(CPP) $(CFLAGS_O1) $**
       
    27 
       
    28 C_OBJS = \
       
    29   $O\7zCrc.obj \
       
    30 
       
    31 
       
    32 7Z_OBJS = \
       
    33   $O\7zAlloc.obj \
       
    34   $O\7zBuffer.obj \
       
    35   $O\7zDecode.obj \
       
    36   $O\7zExtract.obj \
       
    37   $O\7zHeader.obj \
       
    38   $O\7zIn.obj \
       
    39   $O\7zItem.obj \
       
    40   $O\7zMain.obj \
       
    41   $O\7zMethodID.obj \
       
    42 
       
    43 OBJS = \
       
    44   $(7Z_OBJS) \
       
    45   $O\LzmaDecode.obj \
       
    46   $O\BranchX86.obj \
       
    47   $O\BranchX86_2.obj \
       
    48   $(C_OBJS) \
       
    49 
       
    50 all: $(PROGPATH) 
       
    51 
       
    52 clean:
       
    53 	-del /Q $(PROGPATH) $O\*.exe $O\*.dll $O\*.obj $O\*.lib $O\*.exp $O\*.res $O\*.pch 
       
    54 
       
    55 $O:
       
    56 	if not exist "$O" mkdir "$O"
       
    57 
       
    58 $(PROGPATH): $O $(OBJS)
       
    59 	link $(LFLAGS) -out:$(PROGPATH) $(OBJS) $(LIBS)
       
    60 
       
    61 
       
    62 $(7Z_OBJS): $(*B).c
       
    63 	$(COMPL)
       
    64 $O\LzmaDecode.obj: ../../Compress/Lzma/$(*B).c
       
    65 	$(COMPL_O2)
       
    66 
       
    67 $O\BranchX86.obj: ../../Compress/Branch/$(*B).c
       
    68 	$(COMPL_O2)
       
    69 
       
    70 $O\BranchX86_2.obj: ../../Compress/Branch/$(*B).c
       
    71 	$(COMPL_O2)
       
    72 
       
    73 $(C_OBJS): ../../$(*B).c
       
    74 	$(COMPL_O2)