- Added GNU GPL copyright headers.

- Cleaned build process up.
This commit is contained in:
Peter Simons 2000-12-16 13:06:03 +00:00
parent 0909ac418c
commit 9a49431890
14 changed files with 190 additions and 2972 deletions

View File

@ -1,66 +1,26 @@
#
# libmpools Makefile
# Build the libmpools library.
#
# $Header$
#
# Make Rules:
# ===========
#
CC = gcc
AR = ar
RANLIB = ranlib
CFLAGS = -Wall -pedantic -O3
CPPFLAGS =
LDFLAGS =
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
libmpools.a: mpools.o
$(AR) cr libmpools.a mpools.o
$(RANLIB) libmpools.a
# Compiler Flags:
# ===============
#
CFLAGS = -Wall
CPPFLAGS=
#
# Labels:
# =======
#
SRCS = mpools.c
OBJS = $(SRCS:.c=.o)
MANFILES= $(SRCS:.c=.3)
#
# Targets
#
.PHONY: all man clean realclean distclean depend
all: libmpools.a
man: mp_malloc.3
clean:
rm -f libmpools.a *.o *.3 *.core
realclean: clean
rm -rf man3
distclean: realclean
depend:
makedepend -Y /usr/include $(SRCS)
@rm -f Makefile.bak
mp_malloc.3: mpools.c
c2man -impools.h -g mpools.c;
#
# Actions
#
libmpools.a: $(OBJS)
rm -f $@
$(AR) cr $@ $(OBJS)
$(RANLIB) $@
#
# Dependencies
#
realclean distclean clean::
rm -f libmpools.a mpools.o

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1997 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1996,97 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#ifndef __LIB_MPOOLS_H__
#define __LIB_MPOOLS_H__ 1

View File

@ -1,67 +1,29 @@
#
# RFC Parse Library
# Build the rfc822 Library
#
# $Header$
#
# Make Rules:
# ===========
#
CC = gcc
AR = ar
RANLIB = ranlib
CFLAGS = -Wall -pedantic -O3
CPPFLAGS =
LDFLAGS =
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
# Compiler flags:
# ===============
#
CFLAGS = -Wall
CPPFLAGS=
# Linker flags:
# =============
#
LDFLAGS =
LIBS = ../libmpools/libmpools.a ../liblists/liblists.a
OBJS = address.o address_scan.o decomment.o address_sep.o
#
# 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
man: rfc822_decomment.3 rfc822_parse_address.3 rfc822_address_sep.3
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) $@
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
@ -72,24 +34,12 @@ address_scan.c: address_scan.l rfc822.h
$(LEX) -Prfc822_ address_scan.l
mv lex.rfc822_.c $@
rfc822_decomment.3: decomment.c
c2man -irfc822.h decomment.c
realclean distclean clean::
rm -f librfc822.a test test.o
rm -f address.c address_scan.c address_scan.h
rm -rf $(OBJS)
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))
../liblists/liblists.a:
(cd ../liblists;$(MAKE))
#
# Dependencies
#
address.o: address.c address_scan.h address_scan.c parse_address.c
address_scan.c: address_scan.l

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1997 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
%{
/* Definitions we need in the parser. */

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +0,0 @@
#ifndef YYSTYPE
#define YYSTYPE int
#endif
#define TOK_ATOM 257
#define TOK_ILLEGAL 258
extern YYSTYPE rfc822_lval;

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1997 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
%{
#ifdef DEBUG_DMALLOC

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1997 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1997 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1997 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#include <stdio.h>
#include <assert.h>

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1997 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#ifndef __LIB_RFC822_H__
#define __LIB_RFC822_H__ 1

View File

@ -1,11 +1,21 @@
/*
* $Source$
* $Revision$
* $Date$
*
* Copyright (C) 1997 by CyberSolutions GmbH.
* All rights reserved.
*/
$Source$
$Revision$
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
This file is part of OpenPetidomo.
OpenPetidomo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
OpenPetidomo is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
#include <stdio.h>
#ifdef DEBUG_DMALLOC