head 1.3; access; symbols PETIDOMO_4_0b6:1.3 PETIDOMO_4_0b5:1.3 PETIDOMO_4_0b4:1.3 PETIDOMO_4_0b3:1.3 BEFORETHL:1.3 petidomo-2-2:1.1.1.1 petidomo:1.1.1; locks; strict; comment @# @; 1.3 date 2000.12.16.13.37.58; author simons; state Exp; branches; next 1.2; 1.2 date 2000.12.16.13.06.12; author simons; state Exp; branches; next 1.1; 1.1 date 2000.12.16.12.38.21; author simons; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.12.16.12.38.21; author simons; state Exp; branches; next ; desc @@ 1.3 log @Added dependency to stop parallel make from messing up with the yacc/lex targets. @ text @# # Build the rfc822 Library # # $Header: /d1/e/petidomo/cvs/petidomo/source/librfc822/Makefile,v 1.2 2000/12/16 13:06:12 simons Exp $ # CC = gcc AR = ar RANLIB = ranlib CFLAGS = -Wall -pedantic -O3 CPPFLAGS = LDFLAGS = .SUFFIXES: .SUFFIXES: .c .o .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -c $< OBJS = address.o address_scan.o decomment.o address_sep.o librfc822.a: $(OBJS) $(AR) cr librfc822.a $(OBJS) $(RANLIB) librfc822.a address.c address_scan.h: address.y rfc822.h parse_address.c $(YACC) -d -p "rfc822_" address.y mv y.tab.c address.c mv y.tab.h address_scan.h address_scan.c: address_scan.l rfc822.h $(LEX) -Prfc822_ address_scan.l mv lex.rfc822_.c $@@ address.c: address_scan.c realclean distclean clean:: rm -f librfc822.a test test.o rm -f address.c address_scan.c address_scan.h rm -rf $(OBJS) # Dependencies address.o: address.c address_scan.h address_scan.c parse_address.c address_scan.c: address_scan.l decomment.c: rfc822.h address_sep.c: rfc822.h @ 1.2 log @- Added GNU GPL copyright headers. - Cleaned build process up. @ text @d4 1 a4 1 # $Header: /d1/e/petidomo/cvs/petidomo/source/librfc822/Makefile,v 1.1.1.1 2000/12/16 12:38:21 simons Exp $ d36 2 @ 1.1 log @Initial revision @ text @d2 1 a2 1 # RFC Parse Library d4 1 a4 1 # $Header: /usr/local/libdata/cvs/c-lib/librfc822/Makefile,v 1.20 1998/08/16 21:36:30 simons Exp $ d7 3 a9 6 # Make Rules: # =========== # .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -c $< d11 3 a13 5 # Compiler flags: # =============== # CFLAGS = -Wall CPPFLAGS= d15 2 a16 5 # Linker flags: # ============= # LDFLAGS = LIBS = ../libmpools/libmpools.a ../liblists/liblists.a d18 2 d21 1 a21 14 # # Labels: # ======= # SRCS = address.c address_scan.c decomment.c address_sep.c OBJS = $(SRCS:.c=.o) # # Targets # .PHONY: all man clean realclean depend all: librfc822.a a22 1 man: rfc822_decomment.3 rfc822_parse_address.3 rfc822_address_sep.3 d24 3 a26 21 test: test.o librfc822.a rfc822.h $(LIBS) $(CC) test.o librfc822.a -o $@@ $(LDFLAGS) $(LIBS) clean: rm -f librfc822.a test *.o *.3 *.core *.bak realclean: clean rm -f address.c address_scan.c address_scan.h depend: makedepend -Y /usr/include $(SRCS) @@rm -f Makefile.bak # # Actions: #========= # librfc822.a: $(OBJS) $(AR) cr $@@ $(OBJS) $(RANLIB) $@@ d37 4 a40 11 rfc822_decomment.3: decomment.c c2man -irfc822.h decomment.c rfc822_parse_address.3: parse_address.c c2man -irfc822.h parse_address.c rfc822_address_sep.3: address_sep.c c2man -irfc822.h address_sep.c ../libmpools/libmpools.a: (cd ../libmpools;$(MAKE)) a41 4 ../liblists/liblists.a: (cd ../liblists;$(MAKE)) # a42 1 # @ 1.1.1.1 log @Imported Petidomo 2.2 as found on www.petidomo.com. @ text @@