# -------------------------------------------------------------------- # Makefile # # Copyright (C) 1999 Angelo Masci # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the Free # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # You can contact the author at this e-mail address: # # angelo@styx.demon.co.uk # # -------------------------------------------------------------------- # $Id$ # -------------------------------------------------------------------- include ../../Makefile.config # -------------------------------------------------------------------- all: libcommon.a clean: $(RM) libcommon.a $(RM) *.o # -------------------------------------------------------------------- XINC = -I. -I.. # -------------------------------------------------------------------- libcommon.a: strfcat.o usleep.o getword.o format.o fprintf.o printf.o snprintf.o sprintf.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o vasprintf.o asprintf.o status.o $(AR) libcommon.a strfcat.o usleep.o getword.o format.o fprintf.o printf.o snprintf.o sprintf.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o vasprintf.o asprintf.o status.o # -------------------------------------------------------------------- strfcat.o: strfcat.c common.h $(CC) $(CFLAGS) $(XINC) -c strfcat.c usleep.o: usleep.c common.h $(CC) $(CFLAGS) $(XINC) -c usleep.c getword.o: getword.c common.h $(CC) $(CFLAGS) $(XINC) -c getword.c status.o: status.c common.h $(CC) $(CFLAGS) $(XINC) -c status.c format.o: format.c common.h $(CC) $(CFLAGS) $(XINC) -c format.c fprintf.o: fprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c fprintf.c printf.o: printf.c common.h $(CC) $(CFLAGS) $(XINC) -c printf.c snprintf.o: snprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c snprintf.c sprintf.o: sprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c sprintf.c vfprintf.o: vfprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c vfprintf.c vprintf.o: vprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c vprintf.c vsnprintf.o: vsnprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c vsnprintf.c vsprintf.o: vsprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c vsprintf.c vasprintf.o: vasprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c vasprintf.c asprintf.o: asprintf.c common.h $(CC) $(CFLAGS) $(XINC) -c asprintf.c # --------------------------------------------------------------------