1# 2# Copyright (c) 1989 The Regents of the University of California. 3# All rights reserved. 4# 5# This code is derived from software contributed to Berkeley by 6# Ozan Yigit. 7# 8# Redistribution and use in source and binary forms are permitted 9# provided that the above copyright notice and this paragraph are 10# duplicated in all such forms and that any documentation, 11# advertising materials, and other materials related to such 12# distribution and use acknowledge that the software was developed 13# by the University of California, Berkeley. The name of the 14# University may not be used to endorse or promote products derived 15# from this software without specific prior written permission. 16# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19# 20# @(#)Makefile 5.2 (Berkeley) 8/28/89 21# 22 23# 24# -DEXTENDED 25# if you like to get paste & spaste macros. 26# 27CFLAGS= -O -DEXTENDED 28LIBC= /lib/libc.a 29SRCS = main.c eval.c serv.c look.c misc.c expr.c 30OBJS = main.o eval.o serv.o look.o misc.o expr.o 31MAN= m4.0 32 33all: m4 34 35m4: ${OBJS} ${LIBC} 36 ${CC} -o $@ ${CFLAGS} ${OBJS} 37 38clean: 39 rm -f ${OBJS} core m4 40 41cleandir: clean 42 rm -f ${MAN} tags .depend 43 44depend: ${SRCS} 45 mkdep ${CFLAGS} ${SRCS} 46 47install: ${MAN} 48 install -s -o bin -g bin -m 755 m4 ${DESTDIR}/usr/bin/m4 49 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 50 51lint: ${SRCS} 52 lint ${CFLAGS} ${SRCS} 53 54tags: ${SRCS} 55 ctags ${SRCS} 56