Skip to content

Commit

Permalink
include grsutil in build
Browse files Browse the repository at this point in the history
  • Loading branch information
taviso committed Aug 27, 2022
1 parent 7472f3d commit 44efeaf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ build
reference
symbols
stabs
*.cmarkers
*.names
*.EXE
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ all: wordperfect8_i386.deb
macro/mactool:
make -C macro

wordperfect8_i386: libcompat.so libwppatch.so | macro/mactool
util/grsutil:
make -C util

wordperfect8_i386: libcompat.so libwppatch.so | macro/mactool util/grsutil
bash build8.sh $@

libcompat.so: compat.o
Expand All @@ -31,3 +34,4 @@ clean:
rm -rf lib
make -C intercept clean
make -C macro clean
make -C util clean
2 changes: 2 additions & 0 deletions build8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,11 @@ chmod -R 0755 root/lib

# Add any extra utility programs.
install -D --mode=0755 ../macro/mactool root/shbin10/mactool
install -D --mode=0755 ../util/grsutil root/shbin10/grsutil

# Remove any debugging symbols from our code.
strip root/shbin10/mactool
strip root/shbin10/grsutil
strip root/lib/libwppatch.so

# Install into prefix
Expand Down
6 changes: 3 additions & 3 deletions macro/macros/utils.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef __UTILS_H
#define __UTILS_H

/* Specify the only editmode you support */
#define passthru_key_unless(mode) \
/* Specify the only state flags you support */
#define require(mode, ...) \
if (!stateset(mode)) \
{original key} \
__VA_ARGS__ \
{quit} \
fi

Expand Down

0 comments on commit 44efeaf

Please sign in to comment.