This commit is contained in:
jrandom
2005-09-16 04:34:59 +00:00
committed by zzz
parent d89f589f2b
commit 6ca3f01038
102 changed files with 9297 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# Project: consolehead
# Makefile created by Dev-C++ 4.9.9.2
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = consolehead.o ../head.o $(RES)
LINKOBJ = consolehead.o ../head.o $(RES)
LIBS = -L"lib" -s
INCS = -I"include"
CXXINCS = -I"lib/gcc/mingw32/3.4.2/include" -I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32" -I"include/c++/3.4.2" -I"include"
BIN = consolehead.exe
CXXFLAGS = $(CXXINCS) -fexpensive-optimizations -O3
CFLAGS = $(INCS) -fexpensive-optimizations -O3
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before consolehead.exe all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o "consolehead.exe" $(LIBS)
consolehead.o: consolehead.c
$(CC) -c consolehead.c -o consolehead.o $(CFLAGS)
../head.o: ../head.c
$(CC) -c ../head.c -o ../head.o $(CFLAGS)

View File

@ -0,0 +1,56 @@
/*
launch4j :: Cross-platform Java application wrapper for creating Windows native executables
Copyright (C) 2004-2005 Grzegorz Kowal
Compiled with Mingw port of GCC, Bloodshed Dev-C++ IDE (http://www.bloodshed.net/devcpp.html)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "../resource.h"
#include "../head.h"
int main(int argc, char* argv[])
{
setConsoleFlag();
HMODULE hLibrary = NULL;
char cmdLine[BIG_STR] = "";
int i; // causes error: 'for' loop initial declaration used outside C99 mode.
for (i = 1; i < argc; i++) {
strcat(cmdLine, argv[i]);
if (i < argc - 1) {
strcat(cmdLine, " ");
}
}
if (!prepare(hLibrary, cmdLine)) {
if (hLibrary != NULL) {
FreeLibrary(hLibrary);
}
return 1;
}
FreeLibrary(hLibrary);
int result = (int) execute(TRUE);
if (result == -1) {
char errMsg[BIG_STR] = "could not start the application: ";
strcat(errMsg, strerror(errno));
msgBox(errMsg);
return 1;
} else {
return result;
}
}

View File

@ -0,0 +1,108 @@
[Project]
FileName=consolehead.dev
Name=consolehead
UnitCount=4
Type=1
Ver=1
ObjFiles=
Includes=
Libs=
PrivateResource=consolehead_private.rc
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=
IsCpp=0
Icon=
ExeOutput=
ObjectOutput=
OverrideOutput=0
OverrideOutputName=consolehead.exe
HostApplication=
Folders=
CommandLine=
UseCustomMakefile=0
CustomMakefile=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0000000001001000000100
[Unit1]
FileName=consolehead.c
CompileCpp=0
Folder=consolehead
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[VersionInfo]
Major=0
Minor=1
Release=1
Build=1
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=
AutoIncBuildNr=0
[Unit2]
FileName=..\resource.h
CompileCpp=0
Folder=consolehead
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit3]
FileName=..\head.c
CompileCpp=0
Folder=consolehead
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit4]
FileName=..\head.h
CompileCpp=0
Folder=consolehead
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit5]
FileName=..\head.rc
Folder=consolehead
Compile=1
Link=0
Priority=1000
OverrideBuildCmd=0
BuildCmd=
[Unit6]
FileName=..\resid.h
CompileCpp=0
Folder=consolehead
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=