head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	95.09.13.16.02.30;	author seth;	state Exp;
branches;
next	1.1;

1.1
date	95.09.01.18.56.37;	author seth;	state Exp;
branches;
next	;


desc
@@


1.2
log
@NeXT changes
@
text
@######################################################################
## NeXT variables
# CFLAGS = -g -O -I.
# LDFLAGS = -Xlinker -m
# AR = libtool
# ARFLAGS = -o
# LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
# CC = cc
# RANLIB = :

######################################################################
# Everyone else's variables
CFLAGS = -g -O -I.
CC = gcc
RANLIB = ranlib

TARGETS=libnewlog.a syslogerr syslogerr-fix
DESTLIB=/usr/local/lib
DESTINC=/usr/local/include
PERM=644
INSTALL=install

SRCS = snprintf.c vsnprintf.c syslog.c fvwrite.c strerror.c strtod.c vfprintf.c

OBJ = $(SRCS:.c=.o)

all: $(TARGETS)

libnewlog.a: $(OBJ)
	$(AR) $(ARFLAGS) $@@ $(OBJ)
	$(RANLIB) $@@ || true

syslogerr: syslogerr.c libnewlog.a
	$(LINK.c) -o $@@ $@@.c

syslogerr-fix: syslogerr.c libnewlog.a
	$(LINK.c) -o $@@ syslogerr.c -L. -lnewlog


clean:
	$(RM) core *~ $(TARGETS) *.a *.o syslogerr syslogerr-fix

install: $(TARGETS)
	$(INSTALL) -m $(PERM) libnewlog.a $(DESTLIB)
	$(RANLIB) $(DESTLIB)/libnewlog.a || true
#	$(INSTALL) -m $(PERM) $(INCFILES) $(DESTINC)
#	mkdir -p $(DESTINC)/sys
#	$(INSTALL) -m $(PERM) $(SYSINCFILES) $(DESTINC)/sys
@


1.1
log
@Initial revision
@
text
@d1 13
d15 2
a16 1
CFLAGS = -g -O -I.
a17 1
RANLIB=ranlib
d30 1
a30 1
	$(AR) $(ARFLAGS) $@@ $?
d33 1
a33 1
syslogerr:
d36 1
a36 1
syslogerr-fix:
@
