Remove the makefile, should not be check-in in the first place (bad * joker! ;-) )

Plus fix a warning about type mismatch...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5568 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2003-12-04 22:40:43 +00:00
parent 6c5ac69ac2
commit d220d2bb07
2 changed files with 3 additions and 104 deletions

View File

@ -120,14 +120,14 @@ bool SetupView::UpdateViewData()
if (*server->Text() && *queue->Text()) {
BNetEndpoint *ep = new BNetEndpoint(SOCK_STREAM);
if (ep->InitCheck() == B_NO_ERROR) {
int port = atoi(queue->Text());
uint16 port = atoi(queue->Text());
if (! port)
port = 9100;
if (ep->Connect(server->Text(), atoi(queue->Text())) != B_OK) {
BString text;
text << "Fail to connect to " << server->Text() << ":" << port << "!";
text << "Fail to connect to " << server->Text() << ":" << (int) port << "!";
BAlert *alert = new BAlert("", text.String(), "Damn");
alert->Go();
return false;
@ -136,7 +136,7 @@ bool SetupView::UpdateViewData()
char str[256];
sprintf(str, "%s:%s", server->Text(), queue->Text());
dir->WriteAttr("hp_jetdirect:host", B_STRING_TYPE, 0, server->Text(), strlen(server->Text()) + 1);
dir->WriteAttr("hp_jetdirect:port", B_INT16_TYPE, 0, &port, 2);
dir->WriteAttr("hp_jetdirect:port", B_UINT16_TYPE, 0, &port, sizeof(port));
return true;
};
};

View File

@ -1,101 +0,0 @@
## BeOS Generic Makefile v2.0 ##
## Fill in this file to specify the project being created, and the referenced
## makefile-engine will do all of the hard work for you. This handles both
## Intel and PowerPC builds of the BeOS.
## Application Specific Settings ---------------------------------------------
# specify the name of the binary
NAME= HP\ JetDirect
# specify the type of binary
# APP: Application
# SHARED: Shared library or add-on
# STATIC: Static library archive
# DRIVER: Kernel Driver
TYPE= SHARED
# specify the source files to use
# full paths or paths relative to the makefile can be included
# all files, regardless of directory, will have their object
# files created in the common object directory.
# Note that this means this makefile will not work correctly
# if two source files with the same name (source.c or source.cpp)
# are included from different directories. Also note that spaces
# in folder names do not work well with this makefile.
SRCS= \
print_transport.cpp \
HPJetDirectTransport.cpp \
SetupWindow.cpp
# specify the resource files to use
# full path or a relative path to the resource file can be used.
RSRCS=
# specify additional libraries to link against
# there are two acceptable forms of library specifications
# - if your library follows the naming pattern of:
# libXXX.so or libXXX.a you can simply specify XXX
# library: libbe.so entry: be
#
# - if your library does not follow the standard library
# naming scheme you need to specify the path to the library
# and it's name
# library: my_lib.a entry: my_lib.a or path/my_lib.a
# LIBS= be netapi # for net_server
LIBS= be bnetapi # for BONE
# specify additional paths to directories following the standard
# libXXX.so or libXXX.a naming scheme. You can specify full paths
# or paths relative to the makefile. The paths included may not
# be recursive, so include all of the paths where libraries can
# be found. Directories where source files are found are
# automatically included.
LIBPATHS=
# additional paths to look for system headers
# thes use the form: #include <header>
# source file directories are NOT auto-included here
SYSTEM_INCLUDE_PATHS =
# additional paths to look for local headers
# thes use the form: #include "header"
# source file directories are automatically included
LOCAL_INCLUDE_PATHS =
# specify the level of optimization that you desire
# NONE, SOME, FULL
OPTIMIZE=
# specify any preprocessor symbols to be defined. The symbols
# will be set to a value of 1. For example specify DEBUG if you want
# DEBUG=1 to be set when compiling.
DEFINES=
# specify special warning levels
# if unspecified default warnings will be used
# NONE = supress all warnings
# ALL = enable all warnings
WARNINGS = ALL
# specify whether image symbols will be created
# so that stack crawls in the debugger are meaningful
# if TRUE symbols will be created
SYMBOLS =
# specify debug settings
# if TRUE will allow application to be run from
# a source-level debugger
DEBUGGER =
# specify additional compiler flags for all files
COMPILER_FLAGS =
# specify additional linker flags
LINKER_FLAGS =
## include the makefile-engine
include /boot/develop/etc/makefile-engine