Ticket #19762: patch-Makefile.diff

File patch-Makefile.diff, 1.4 KB (added by lutz.horn@…, 15 years ago)
  • Makefile

    old new  
    2121include Makefile.cfg
    2222
    2323export CC = gcc -pthread
    24 export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
    25 export LDLIBS += -lncursesw
     24export CFLAGS += -I. -I/opt/local/include -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
     25export LDLIBS += -L/opt/local/lib -lncursesw -liconv
    2626
    2727VERSION := 0.20
    2828
     
    4848        rm -f stfl.pc
    4949
    5050Makefile.deps: *.c widgets/*.c *.h
    51         $(CC) -I. -MM *.c > Makefile.deps_new
    52         $(CC) -I. -MM widgets/*.c | sed 's,^wt_[^ ]*\.o: ,widgets/&,' >> Makefile.deps_new
     51        $(CC) $(CFLAGS) $(LDLIBS) -MM *.c > Makefile.deps_new
     52        $(CC) $(CFLAGS) $(LDLIBS) -MM widgets/*.c | sed 's,^wt_[^ ]*\.o: ,widgets/&,' >> Makefile.deps_new
    5353        mv -f Makefile.deps_new Makefile.deps
    5454
    5555install: all stfl.pc
     
    6666include spl/Makefile.snippet
    6767endif
    6868
    69 ifeq ($(FOUND_SWIG)$(FOUND_PERL5),11)
    70 include perl5/Makefile.snippet
    71 endif
    72 
    73 ifeq ($(FOUND_SWIG)$(FOUND_PYTHON),11)
    74 include python/Makefile.snippet
    75 endif
    76 
    77 ifeq ($(FOUND_SWIG)$(FOUND_RUBY),11)
    78 include ruby/Makefile.snippet
    79 endif
    80 
     69#ifeq ($(FOUND_SWIG)$(FOUND_PERL5),11)
     70#include perl5/Makefile.snippet
     71#endif
     72#
     73#ifeq ($(FOUND_SWIG)$(FOUND_PYTHON),11)
     74#include python/Makefile.snippet
     75#endif
     76#
     77#ifeq ($(FOUND_SWIG)$(FOUND_RUBY),11)
     78#include ruby/Makefile.snippet
     79#endif
     80#
    8181.PHONY: all clean install install_spl
    8282
    8383include Makefile.deps