recipes

packages recipes for the <noname> package manager
Log | Files | Refs

Makefile (790B)


      1 # This Makefile automatically generated by configure.
      2 
      3 CC =		cc
      4 CFLAGS =	-DEXTENDED -I. -w -D_GNU_SOURCE
      5 PREFIX =	/usr/local
      6 MANDIR =	/usr/local/man
      7 PROG =		om4
      8 
      9 OBJS =	eval.o expr.o look.o main.o misc.o gnum4.o trace.o tokenizer.o \
     10 	parser.o ohash.o reallocarray.o strlcpy.o strtonum.o
     11 
     12 all: ${PROG}
     13 
     14 ${PROG}: ${OBJS}
     15 	${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -lm
     16 
     17 parser.c parser.h: parser.y
     18 	yacc -d parser.y && mv y.tab.c parser.c && mv y.tab.h parser.h
     19 
     20 tokenizer.o: parser.h
     21 
     22 install:
     23 	install -d ${DESTDIR}${PREFIX}/bin
     24 	install -d ${DESTDIR}${MANDIR}/man1
     25 	install -c -s -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin
     26 	install -c -m 644 om4.1 ${DESTDIR}${MANDIR}/man1/${PROG}.1
     27 
     28 test:
     29 	echo "No tests"
     30 
     31 clean:
     32 	rm -f ${PROG} ${OBJS} parser.c parser.h
     33 
     34 distclean: clean
     35 	rm -f Makefile config.h