Fixed a few issues

This commit is contained in:
Sasha Koshka 2023-11-03 21:43:16 -04:00
parent 347904a380
commit e042d5b45e
2 changed files with 15 additions and 5 deletions

View File

@ -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

View File

@ -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
;;