b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/Makefile.in |
| 2 | +++ b/Makefile.in |
| 3 | @@ -84,12 +84,7 @@ showkey: showkey.o $(LIBNEWT) |
| 4 | |
| 5 | _snack.$(SOEXT): snack.c $(LIBNEWTSH) |
| 6 | @[ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS); do \ |
| 7 | - pyconfig=$$ver-config; \ |
| 8 | - if ! $$pyconfig --cflags > /dev/null 2>&1 && \ |
| 9 | - python-config --cflags > /dev/null 2>&1; then \ |
| 10 | - echo $$pyconfig not found, using python-config; \ |
| 11 | - pyconfig=python-config; \ |
| 12 | - fi; \ |
| 13 | + pyconfig=$(PYTHON_CONFIG_PATH)/$$ver-config; \ |
| 14 | mkdir -p $$ver; \ |
| 15 | PCFLAGS=`$$pyconfig --cflags`; \ |
| 16 | PIFLAGS=`$$pyconfig --includes`; \ |
| 17 | @@ -109,7 +104,7 @@ whiptcl.$(SOEXT): $(WHIPTCLOBJS) $(LIBNE |
| 18 | $(CC) -shared $(SHCFLAGS) $(LDFLAGS) -o whiptcl.$(SOEXT) $(WHIPTCLOBJS) -L. -lnewt $(LIBTCL) -lpopt $(LIBS) |
| 19 | |
| 20 | $(LIBNEWT): $(LIBOBJS) |
| 21 | - ar rv $@ $^ |
| 22 | + $(AR) rv $@ $^ |
| 23 | |
| 24 | newt.o $(SHAREDDIR)/newt.o: newt.c Makefile |
| 25 | |