Skip to content

Commit

Permalink
Make Tcl library configurable
Browse files Browse the repository at this point in the history
On openSUSE, the tcl library is not called libtcl.so, but libtcl8.6.so
In this case, one can still compile with "make TCL_LIB=-ltcl8.6"
  • Loading branch information
olebole committed Jan 23, 2024
1 parent cc2ecc1 commit 1ce0da8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ all: xgterm ximtool
prefix = /usr/local

export TCL_INCLUDE_DIR = /usr/include/tcl
export TCL_LIB = -ltcl

.PHONY: xgterm ximtool xtapemon obmsh

Expand Down
2 changes: 1 addition & 1 deletion obm/listres/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ all: listres
listres: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) \
-L.. -lobm \
-lXpm -ltcl -lXaw3d -lXmu -lXt -lXext -lX11 -lm
-lXpm $(TCL_LIB) -lXaw3d -lXmu -lXt -lXext -lX11 -lm

clean:
rm -f listres $(OBJS)
2 changes: 1 addition & 1 deletion obmsh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif
obmsh: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) \
-L../obm -lobm \
-lXpm -ltcl -lXaw3d -lXmu -lXt -lXext -lX11 -lncurses -lm
-lXpm $(TCL_LIB) -lXaw3d -lXmu -lXt -lXext -lX11 -lncurses -lm

clean:
rm -f obmsh $(OBJS)
2 changes: 1 addition & 1 deletion xgterm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif
xgterm: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) \
-L../obm -lobm \
-lXpm -ltcl -lXaw3d -lXmu -lXt -lXext -lX11 -lncurses -lm
-lXpm $(TCL_LIB) -lXaw3d -lXmu -lXt -lXext -lX11 -lncurses -lm

clean:
rm -f xgterm $(OBJS)
2 changes: 1 addition & 1 deletion ximtool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ximtool.html.h: ximtool.html
ximtool: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) \
-L../obm -lobm \
-lXpm -ltcl -lXaw3d -lXmu -lXt -lXext -lX11 -lncurses -lm
-lXpm $(TCL_LIB) -lXaw3d -lXmu -lXt -lXext -lX11 -lncurses -lm

clients:
cd clients && mkpkg || true
Expand Down

0 comments on commit 1ce0da8

Please sign in to comment.