mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-31 13:11:48 +02:00
bin
cmake
module
Base
Core
Entity
Library
Misc
Vendor
AES256
B64
CivetWeb
ConcurrentQueue
Fmt
Hash
MDBC
cmake
examples
include
libmariadb
mariadb_config
plugins
win
win-iconv
zlib
amiga
contrib
doc
examples
msdos
Makefile.bor
Makefile.dj2
Makefile.emx
Makefile.msc
Makefile.tc
nintendods
old
os400
qnx
test
watcom
win32
CMakeLists.txt
ChangeLog
FAQ
INDEX
Makefile
Makefile.in
README
adler32.c
compress.c
configure
crc32.c
crc32.h
deflate.c
deflate.h
gzclose.c
gzguts.h
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inffast.h
inffixed.h
inflate.c
inflate.h
inftrees.c
inftrees.h
make_vms.com
treebuild.xml
trees.c
trees.h
uncompr.c
zconf.h.cmakein
zconf.h.in
zconf.h.included
zlib.3
zlib.3.pdf
zlib.h
zlib.map
zlib.pc.cmakein
zlib.pc.in
zlib2ansi
zutil.c
zutil.h
CMakeLists.txt
COPYING.LIB
README
MaxmindDB
PUGIXML
SQLite
SimpleIni
SimpleSocket
TinyDir
Whirlpool
CMakeLists.txt
CMakeLists.txt
Core.cpp
Core.hpp
Logger.cpp
Logger.hpp
Main.cpp
Register.cpp
SqBase.hpp
sdk
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
70 lines
1.4 KiB
Makefile
70 lines
1.4 KiB
Makefile
# Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98.
|
|
# Copyright (C) 1995-1998 Jean-loup Gailly.
|
|
# For conditions of distribution and use, see copyright notice in zlib.h
|
|
|
|
# To compile, or to compile and test, type:
|
|
#
|
|
# make -fmakefile.emx; make test -fmakefile.emx
|
|
#
|
|
|
|
CC=gcc
|
|
|
|
#CFLAGS=-MMD -O
|
|
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
|
#CFLAGS=-MMD -g -DZLIB_DEBUG
|
|
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
|
-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. -lzlib
|
|
LD=$(CC) -s -o
|
|
LDSHARED=$(CC)
|
|
|
|
INCL=zlib.h zconf.h
|
|
LIBS=zlib.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 zutil.o inflate.o infback.o inftrees.o inffast.o
|
|
|
|
TEST_OBJS = example.o minigzip.o
|
|
|
|
all: example.exe minigzip.exe
|
|
|
|
test: all
|
|
./example
|
|
echo hello world | .\minigzip | .\minigzip -d
|
|
|
|
%.o : %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
zlib.a: $(OBJS)
|
|
$(AR) $@ $(OBJS)
|
|
|
|
%.exe : %.o $(LIBS)
|
|
$(LD) $@ $< $(LDLIBS)
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
clean:
|
|
$(RM) *.d
|
|
$(RM) *.o
|
|
$(RM) *.exe
|
|
$(RM) zlib.a
|
|
$(RM) foo.gz
|
|
|
|
DEPS := $(wildcard *.d)
|
|
ifneq ($(DEPS),)
|
|
include $(DEPS)
|
|
endif
|