1#/* FILE: mvcpp.nt 2# * 3# * Copyright (c) 2008 4# * TouchNet Information Systems, Inc. 5# * All Rights Reserved 6# * 7# * This program is an unpublished copyright work of TouchNet Information 8# * Systems, Inc. of Lenexa, KS. The program, all information disclosed 9# * and the matter shown and described hereon or herewith are confidential 10# * and proprietary to TouchNet Information Systems, Inc. 11# * 12# ****************************************************************************** 13# * 14# * $LastChangedBy: kientzle $ 15# * $Locker: $ 16# * $ProjectName: $ 17# * $ProjectRevision: $ 18# * $LastChangedRevision: 1827 $ 19# * $LastChangedDate: 2010-01-16 16:21:36 -0800 (Sat, 16 Jan 2010) $ 20# * $State: $ 21# * $RCSfile: $ 22# * $Source: $ 23# * 24# * Change Log: 25# * $Log: $ 26# * 27# */ 28 29.SUFFIXES : .c .cpp .obm 30 31ZLIB_INCL=\3rdParty\ZLib\Current\Include 32 33EXTRA_DEFINES=/DLIBARCHIVE_STATIC=1 34 35!ifdef DEBUG 36DEST_PATH=.\lib\mvcpp\debug 37OBJ_DIR=obj\debug 38COMPILE_FLAG=/MTd /DDEBUG=1 $(EXTRA_DEFINES) /Zi /Fd$(OBJ_DIR)\libarchive.pdb 39!else 40DEST_PATH=.\lib\mvcpp 41OBJ_DIR=obj 42COMPILE_FLAG=/MT $(EXTRA_DEFINES) /Fd$(OBJ_DIR)\libarchive.pdb 43!endif 44 45INCLUDE=.;$(MSDEVDIR)\INCLUDE;$(ZLIB_INCL); 46INCLUDE_OPTS= 47 48NT_CPP=cl 49NT_C=cl 50NT_LIBRARIAN=lib 51 52### 53NT_C_OPTS=$(COMPILE_FLAG) /GX /Zl /Zp1 /nologo /c /G5 /Oi /Ot /TC /DVC_EXTRANLEAN /DWIN32_LEAN_AND_MEAN $(INCLUDE_OPTS) 54NT_CPP_OPTS=$(COMPILE_FLAG) /GX /Zl /Zp1 /nologo /c /G5 /Oi /Ot /TP /DVC_EXTRANLEAN /DWIN32_LEAN_AND_MEAN $(INCLUDE_OPTS) 55NT_LIB_OPTS= 56 57.cpp{$(OBJ_DIR)}.obm: 58 -md $(OBJ_DIR) > nul 2>nul 59 $(NT_CPP) $(NT_CPP_OPTS) -Fo$*.obm $< 60 61.c{$(OBJ_DIR)}.obm: 62 -md $(OBJ_DIR) > nul 2>nul 63 $(NT_C) $(NT_C_OPTS) -Fo$*.obm $< 64 65 66OBJS=\ 67 $(OBJ_DIR)\archive_check_magic.obm $(OBJ_DIR)\archive_entry.obm \ 68 $(OBJ_DIR)\archive_entry_copy_stat.obm $(OBJ_DIR)\archive_entry_link_resolver.obm \ 69 $(OBJ_DIR)\archive_entry_stat.obm $(OBJ_DIR)\archive_entry_strmode.obm \ 70 $(OBJ_DIR)\archive_read.obm $(OBJ_DIR)\archive_read_data_into_fd.obm \ 71 $(OBJ_DIR)\archive_read_extract.obm $(OBJ_DIR)\archive_read_open_fd.obm \ 72 $(OBJ_DIR)\archive_read_open_file.obm $(OBJ_DIR)\archive_read_open_filename.obm \ 73 $(OBJ_DIR)\archive_read_open_memory.obm $(OBJ_DIR)\archive_read_support_compression_all.obm \ 74 $(OBJ_DIR)\archive_read_support_compression_bzip2.obm \ 75 $(OBJ_DIR)\archive_read_support_compression_compress.obm \ 76 $(OBJ_DIR)\archive_read_support_compression_gzip.obm \ 77 $(OBJ_DIR)\archive_read_support_compression_none.obm \ 78 $(OBJ_DIR)\archive_read_support_compression_program.obm \ 79 $(OBJ_DIR)\archive_read_support_format_all.obm \ 80 $(OBJ_DIR)\archive_read_support_format_ar.obm \ 81 $(OBJ_DIR)\archive_read_support_format_cpio.obm \ 82 $(OBJ_DIR)\archive_read_support_format_empty.obm \ 83 $(OBJ_DIR)\archive_read_support_format_iso9660.obm \ 84 $(OBJ_DIR)\archive_read_support_format_mtree.obm \ 85 $(OBJ_DIR)\archive_read_support_format_tar.obm \ 86 $(OBJ_DIR)\archive_read_support_format_zip.obm \ 87 $(OBJ_DIR)\archive_string.obm $(OBJ_DIR)\archive_string_sprintf.obm \ 88 $(OBJ_DIR)\archive_util.obm $(OBJ_DIR)\archive_virtual.obm \ 89 $(OBJ_DIR)\archive_write.obm $(OBJ_DIR)\archive_write_disk.obm \ 90 $(OBJ_DIR)\archive_write_disk_set_standard_lookup.obm \ 91 $(OBJ_DIR)\archive_write_open_fd.obm $(OBJ_DIR)\archive_write_open_file.obm \ 92 $(OBJ_DIR)\archive_write_open_filename.obm $(OBJ_DIR)\archive_write_open_memory.obm \ 93 $(OBJ_DIR)\archive_write_set_compression_bzip2.obm $(OBJ_DIR)\archive_write_set_compression_compress.obm \ 94 $(OBJ_DIR)\archive_write_set_compression_gzip.obm $(OBJ_DIR)\archive_write_set_compression_none.obm \ 95 $(OBJ_DIR)\archive_write_set_compression_program.obm $(OBJ_DIR)\archive_write_set_format.obm \ 96 $(OBJ_DIR)\archive_write_set_format_ar.obm $(OBJ_DIR)\archive_write_set_format_by_name.obm \ 97 $(OBJ_DIR)\archive_write_set_format_cpio.obm $(OBJ_DIR)\archive_write_set_format_cpio_newc.obm \ 98 $(OBJ_DIR)\archive_write_set_format_pax.obm $(OBJ_DIR)\archive_write_set_format_shar.obm \ 99 $(OBJ_DIR)\archive_write_set_format_ustar.obm $(OBJ_DIR)\filter_fork.obm \ 100 $(OBJ_DIR)\libarchive-nonposix.obm 101 102all: CLEAN $(DEST_PATH)\libarchive.lib 103 104$(DEST_PATH)\libarchive.lib :: $(OBJS) $(DEST_PATH) 105 106$(DEST_PATH)\libarchive.lib :: 107 $(NT_LIBRARIAN) $(NT_LIB_OPTS) /OUT:$(DEST_PATH)\libarchive.lib $(OBJS) 108 109$(DEST_PATH): 110 -md $(DEST_PATH) > nul 2>nul 111 112CLEAN: 113!ifdef CLEAN 114 -del $(OBJ_DIR)\*.pd? > nul 2>nul 115 -ren $(OBJ_DIR)\*.pdb *.pd1 > nul 2>nul 116 -ren $(OBJ_DIR)\*.pdb *.pd2 > nul 2>nul 117!endif 118