Undo non-Deadwood.exe changes done by Win32 build process

This commit is contained in:
Sam Trenholme 2022-11-11 20:14:36 -08:00
parent 4e7c225676
commit 423fa2a5c5
3 changed files with 375 additions and 530 deletions

View file

@ -1,160 +1,3 @@
Summary: With the exception of two public domain tarballs in Docker-stuff,
all files here are under a BSD or MIT license.
--
Copyright for everything *not* in the coLunacyDNS/lunacy/,
Docker-stuff/, or tools/ej/ folders:
Copyright (c) 2002-2022 Sam Trenholme and others
TERMS
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
This software is provided 'as is' with no guarantees of correctness or
fitness for purpose.
--
Please note that the files in coLunacyDNS/lunacy are available under
a slightly different license, the MIT (Lua) license.
With all files here:
* Binaries can be distributed without source
* Any programs that link to these files and/or derived object files
can be released under any license.
Lunacy copyright and licenses follow:
-------------------------------------------------------------------------
Lua License
-----------
Lua is licensed under the terms of the MIT license reproduced below.
This means that Lua is free software and can be used for both academic
and commercial purposes at absolutely no cost.
For details and rationale, see http://www.lua.org/license.html .
===============================================================================
Copyright (C) 1994-2012 Lua.org, PUC-Rio.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
===============================================================================
(end of COPYRIGHT)
-----------------------------------------------------------------------
Lunacy includes a mostly (but not 100%) functional version of the
Lua File System libs (lfs.c, lfs.h), which is under the following
copyright:
Copyright © 2003-2014 Kepler Project.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------------------------------------------------------------------
Lunacy also includes a version of bitlib with this license:
bitlib is a C library for Lua 5.1 that provides bitwise operations. It
is copyright Reuben Thomas 2000-2009, and is released under the MIT
license, like Lua (see http://www.lua.org/copyright.html; it's
basically the same as the BSD license). There is no warranty.
-----------------------------------------------------------------------
The files rg32hash.tar.gz and all files in tools/ej are available under
the following terms (Public domain -or- BSD0 licensed)
-----------------------------------------------------------------------
This program has been donated to the public domain in 2007 or 2022 by
Sam Trenholme
If, for some reason, a public domain declation is not acceptable, it
may be licensed under the following terms:
Copyright 2022 Sam Trenholme
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------------------------------------------------------------------
The file maramake-2022-11-01.tar.gz is available under the following
terms.
-----------------------------------------------------------------------
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
-----------------------------------------------------------------------
These files are licensed under the BSD and/or MIT license.
Please see COPYING for details.

View file

@ -1,5 +1,11 @@
# Makefile for Windows XP (Should also work in Vista and Windows 7; see
# Vista.txt for details)
# Makefile for Deadwood-2 (CentOS 8; may work with other other Linux and
# *NIX systems)
# The compiler that makes programs designed to run on the machine
# compiling. When cross-compiling, we still need to compile and
# run programs on the build machine, so change the next line when
# cross-compiling.
HOSTCC=$(CC)
OBJS=DwStr.o \
DwMararc.o \
@ -8,72 +14,68 @@ OBJS=DwStr.o \
DwUdpSocket.o \
DwTcpSocket.o \
DwSys.o \
DwMain.o \
DwHash.o \
DwCompress.o \
DwDnsStr.o \
DwRecurse.o \
DwDict.o
all: Deadwood.exe
all: Deadwood version.h
# Since some systems may not have /dev/urandom (Windows, *cough* *cough*), we
# keep a randomly generated prime around
# Makefile \
#
clean:
rm -f Test DwMain DwTcp *.exe *.txt *.o a.out Makefile
version.h:
echo '#define VERSION "'$( date +%Y-%m-%d )'"' > version.h
rm -f Test DwMain DwTcp *.exe *.o a.out RandomPrime writehash_test* \
Deadwood foo* dw_cache DwHash DwCompress *stackdump \
core ; \
./make.version.h
version.h:
./make.version.h
DwStr.o: DwStr.c DwStr.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o DwStr.o DwStr.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwStr.o DwStr.c
DwCompress.o: DwCompress.c DwStr.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o \
DwCompress.o DwCompress.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwCompress.o DwCompress.c
DwDnsStr.o: DwDnsStr.c DwStr.h DwRecurse.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o \
DwDnsStr.o DwDnsStr.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwDnsStr.o DwDnsStr.c
DwMararc.o: DwMararc.c DwMararc.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o \
DwMararc.o DwMararc.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwMararc.o DwMararc.c
DwRadioGatun.o: DwRadioGatun.c DwRadioGatun.h DwStr.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o \
DwRadioGatun.o DwRadioGatun.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwRadioGatun.o DwRadioGatun.c
DwTcpSocket.o: DwTcpSocket.c DwStr.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o \
DwTcpSocket.o DwTcpSocket.c
DwTcpSocket.o: DwTcpSocket.c DwStr.h DwSocket.h
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwTcpSocket.o DwTcpSocket.c
DwUdpSocket.o: DwUdpSocket.c DwStr.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o \
DwUdpSocket.o DwUdpSocket.c
DwUdpSocket.o: DwUdpSocket.c DwStr.h DwSocket.h
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwUdpSocket.o DwUdpSocket.c
DwSocket.o: DwSocket.c DwStr.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o \
DwSocket.o DwSocket.c
DwSocket.o: DwSocket.c DwStr.h DwSocket.h
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwSocket.o DwSocket.c
DwSys.o: DwSys.c DwStr.h version.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o DwSys.o DwSys.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwSys.o DwSys.c
DwHash.o: DwHash.c DwStr.h DwRandPrime.h DwHash.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o DwHash.o DwHash.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwHash.o DwHash.c
DwRecurse.o: DwRecurse.c DwRecurse.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o \
DwRecurse.o DwRecurse.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwRecurse.o DwRecurse.c
DwDict.o: DwDict.c DwStr.h DwRandPrime.h DwDict.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -Wall -c -o DwDict.o DwDict.c
$(CC) $(FLAGS) $(CFLAGS) -Wall -c -o DwDict.o DwDict.c
Test: Test.c DwStr.o DwStr.h DwStr_functions.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -o Test Test.c $(OBJS)
Test: Test.c DwStr.o DwStr.h DwStr_functions.h $(OBJS)
$(CC) $(FLAGS) $(CFLAGS) -Wall -o Test Test.c $(OBJS)
DwMain.o: DwMain.c DwStr_functions.h DwSys.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -c -o DwMain.o DwMain.c
Deadwood.exe: DwWinSvc.c $(OBJS) version.h
$(CC) $(FLAGS) $(CFLAGS) -DNOIP6 -DMINGW -Wall -o Deadwood.exe \
DwWinSvc.c $(OBJS) -lwsock32
Deadwood: DwMain.c $(OBJS) DwStr_functions.h version.h
$(CC) $(FLAGS) $(CFLAGS) -Wall -o Deadwood DwMain.c $(OBJS) -lrt

File diff suppressed because it is too large Load diff