Fixed a few issues
This commit is contained in:
parent
347904a380
commit
e042d5b45e
@ -13,6 +13,6 @@
|
||||
Pixmap _XmdLoadBitmapIcon (Widget widget, unsigned char *bits, int width, int height);
|
||||
|
||||
/* XmdReadXBM reads an XBM bitmap file, and returns a Pixmap. */
|
||||
Pixmap XmdReadBitmapFileData (Widget, widget, const char *filename);
|
||||
Pixmap XmdReadBitmapFileData (Widget widget, const char *filename);
|
||||
|
||||
#endif
|
||||
|
@ -3,10 +3,17 @@
|
||||
. `dirname $0`/flags.sh
|
||||
|
||||
function build() {
|
||||
mkdir -p bin
|
||||
cc $CFLAGS -c -o "bin/$1.o" src/*.c && \
|
||||
cc -o "bin/$1" "bin/$1.o" $APP_LIBS || \
|
||||
echo "XXX FAIL!"
|
||||
if
|
||||
mkdir -p bin && \
|
||||
cc $CFLAGS -c -o "bin/$1.o" src/*.c && \
|
||||
cc -o "bin/$1" "bin/$1.o" $APP_LIBS
|
||||
then
|
||||
echo ".// ok"
|
||||
return 0
|
||||
else
|
||||
echo "XXX FAIL!"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function clean() {
|
||||
@ -19,6 +26,9 @@ install)
|
||||
cp "bin/$1" "$PREFIX/bin"
|
||||
clean
|
||||
;;
|
||||
run)
|
||||
build "$1" && "./bin/$1"
|
||||
;;
|
||||
clean)
|
||||
clean
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user