From d3261e64152397db2dca4d691a990c6bc2a6f4dd Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Thu, 2 Apr 2026 18:51:45 +0300 Subject: NOISSUE add archived projects Signed-off-by: Mehmet Samet Duman --- archived/ptlibzippy/msdos/Makefile.dj2 | 105 +++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 archived/ptlibzippy/msdos/Makefile.dj2 (limited to 'archived/ptlibzippy/msdos/Makefile.dj2') diff --git a/archived/ptlibzippy/msdos/Makefile.dj2 b/archived/ptlibzippy/msdos/Makefile.dj2 new file mode 100644 index 0000000000..980897a873 --- /dev/null +++ b/archived/ptlibzippy/msdos/Makefile.dj2 @@ -0,0 +1,105 @@ +# Makefile for PTlibzippy. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. +# Copyright (C) 1995-1998 Jean-loup Gailly. +# Copyright (C) 2026 Project Tick +# For conditions of distribution and use, see copyright notice in ptlibzippy.h + +# To compile, or to compile and test, type: +# +# make -fmakefile.dj2; make test -fmakefile.dj2 +# +# To install libptlibzippy.a, ptzippyconf.h and ptlibzippy.h in the djgpp directories, type: +# +# make install -fmakefile.dj2 +# +# after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as +# in the sample below if the pattern of the DJGPP distribution is to +# be followed. Remember that, while 'es around <=> are ignored in +# makefiles, they are *not* in batch files or in djgpp.env. +# - - - - - +# [make] +# INCLUDE_PATH=%\>;INCLUDE_PATH%%\DJDIR%\include +# LIBRARY_PATH=%\>;LIBRARY_PATH%%\DJDIR%\lib +# BUTT=-m486 +# - - - - - +# Alternately, these variables may be defined below, overriding the values +# in djgpp.env, as +# INCLUDE_PATH=c:\usr\include +# LIBRARY_PATH=c:\usr\lib + +CC=gcc + +#CFLAGS=-MMD -O +#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 +#CFLAGS=-MMD -g -DPTLIBZIPPY_DEBUG +CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith \ + -Wstrict-prototypes -Wmissing-prototypes + +# If cp.exe is available, replace "copy /Y" with "cp -fp" . +CP=copy /Y +# If gnu install.exe is available, replace $(CP) with ginstall. +INSTALL=$(CP) +# The default value of RM is "rm -f." If "rm.exe" is found, comment out: +RM=del +LDLIBS=-L. -lptlibzippy +LD=$(CC) -s -o +LDSHARED=$(CC) + +INCL=ptlibzippy.h ptzippyconf.h +LIBS=libptlibzippy.a + +AR=ar rcs + +prefix=/usr/local +exec_prefix = $(prefix) + +OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \ + uncompr.o deflate.o trees.o ptzippyutil.o inflate.o infback.o inftrees.o inffast.o + +OBJA = +# to use the asm code: make OBJA=match.o + +TEST_OBJS = example.o minigzip.o + +all: example.exe minigzip.exe + +check: test +test: all + ./example + echo hello world | .\minigzip | .\minigzip -d + +%.o : %.c + $(CC) $(CFLAGS) -c $< -o $@ + +libptlibzippy.a: $(OBJS) $(OBJA) + $(AR) $@ $(OBJS) $(OBJA) + +%.exe : %.o $(LIBS) + $(LD) $@ $< $(LDLIBS) + +# INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env . + +.PHONY : uninstall clean + +install: $(INCL) $(LIBS) + -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH) + -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH) + $(INSTALL) ptlibzippy.h $(INCLUDE_PATH) + $(INSTALL) ptzippyconf.h $(INCLUDE_PATH) + $(INSTALL) libptlibzippy.a $(LIBRARY_PATH) + +uninstall: + $(RM) $(INCLUDE_PATH)\ptlibzippy.h + $(RM) $(INCLUDE_PATH)\ptzippyconf.h + $(RM) $(LIBRARY_PATH)\libptlibzippy.a + +clean: + $(RM) *.d + $(RM) *.o + $(RM) *.exe + $(RM) libptlibzippy.a + $(RM) foo.gz + +DEPS := $(wildcard *.d) +ifneq ($(DEPS),) +include $(DEPS) +endif -- cgit 0.0.5-2-1-g0f52