Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Initial import.
- Loading branch information
Sam Jansen
committed
Nov 29, 2010
1 parent
a7bf289
commit 1aa7e87
Showing
9 changed files
with
3,366 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright (c) 2010, PROACTIVE RISK - http://www.proactiverisk.com | ||
# | ||
# This file is part of HTTP DoS Tool. | ||
# | ||
# HTTP Dos Tool is free software: you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by the Free | ||
# Software Foundation, either version 3 of the License, or (at your option) any | ||
# later version. | ||
# | ||
# Foobar 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 General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along with | ||
# HTTP DoS Tool. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
import os | ||
import sys | ||
|
||
# libevent location | ||
libevent_loc = ARGUMENTS.get('libevent') | ||
if not libevent_loc: | ||
if sys.platform == 'win32': | ||
libevent_loc = '../../local' | ||
else: | ||
libevent_loc = '..' | ||
libevent_loc = '#' + libevent_loc | ||
|
||
# Build env | ||
|
||
if sys.platform == 'win32': | ||
env = Environment(tools=['mingw'], | ||
LINKFLAGS=['-Wl,--enable-auto-import'], | ||
LIBPATH=[os.path.join(libevent_loc, 'lib')], | ||
CPPPATH=[os.path.join(libevent_loc, 'include')], | ||
CPPDEFINES=['PLAT_WIN32'] | ||
) | ||
else: | ||
env = Environment( | ||
LIBPATH=[os.path.join(libevent_loc, 'lib')], | ||
CPPPATH=[os.path.join(libevent_loc, 'include')], | ||
CPPDEFINES=['PLAT_LINUX']) | ||
|
||
variant_dir = 'build' | ||
VariantDir(variant_dir, '.', duplicate=0) | ||
Default(variant_dir) | ||
Export('env') | ||
|
||
SConscript(variant_dir + '/src/SConscript') | ||
|
||
# vim: set ft=python : |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# vim: set ft=python : | ||
|
||
Import('env') | ||
|
||
env.Append(LIBS=['event'], | ||
CXXFLAGS=['-g', '-O1']) | ||
|
||
if env['PLATFORM'] == 'win32': | ||
env.Append( | ||
LIBS=['dnsapi', 'ws2_32'], | ||
LINKFLAGS=['-static-libgcc', '-static-libstdc++']) | ||
else: | ||
env.Append(LIBS=['rt']) | ||
|
||
env.Program('http_dos_cli', ['main.cc']) | ||
|
Oops, something went wrong.