source: trunk/dports/math/aamath/files/patch-Makefile.diff @ 147485

Last change on this file since 147485 was 73214, checked in by snc@…, 9 years ago

aamath:

  • try to handle missing ncurses dependency (it now links against macports--in addition to the system ncurses)
  • more comprehensive patch/reinplace
File size: 856 bytes
  • Makefile

    old new  
    1 CXX             = g++
    2 LD              = g++
     1CXX             = @@CXX@@
     2LD              = @@CXX@@
    33CXXFILES        = parser.cc lexer.cc expr.cc canvas.cc aamath.cc
    44OBJS            = $(CXXFILES:.cc=.o)
    55TARGET          = aamath
    6 CFLAGS          = -Wall -O2 -g -DUSE_READLINE
    7 LFLAGS          = -g
    8 LIBS            = -lreadline -ltermcap
     6CFLAGS          = @@CFLAGS@@
     7LIBS            = @@LDFLAGS@@
    98
    109$(TARGET): $(OBJS)
    1110        $(LD) $(LFLAGS) $(OBJS) -o $@ $(LIBS)
    1211
    1312parser.cc parser.h: parser.y
    14         yacc -d parser.y && mv y.tab.c parser.cc && mv y.tab.h parser.h
     13        byacc -d parser.y && mv y.tab.c parser.cc && mv y.tab.h parser.h
    1514
    1615lexer.cc: lexer.l parser.h
    17         lex lexer.l && mv lex.yy.c lexer.cc
     16        flex lexer.l && mv lex.yy.c lexer.cc
    1817
    1918.cc.o:
    2019        $(CXX) $(CFLAGS) -c $<
    2120
    2221clean:
    2322        rm -f *.o lexer.cc parser.h parser.cc $(TARGET)
     23
     24all: $(TARGET)
     25
Note: See TracBrowser for help on using the repository browser.