qse/ase/awk/makefile.in

27 lines
462 B
Makefile
Raw Normal View History

2007-01-28 11:56:07 +00:00
OUT = aseawk
2005-09-30 09:40:15 +00:00
2007-01-18 08:36:36 +00:00
C_SRCS = awk.c err.c tree.c str.c tab.c map.c parse.c \
run.c rec.c val.c func.c misc.c extio.c rex.c
C_OBJS = $(C_SRCS:.c=.o)
2005-09-30 09:40:15 +00:00
CC = @CC@
2006-12-05 03:24:04 +00:00
AR = ar
2006-12-05 03:32:22 +00:00
RANLIB = @RANLIB@
2007-01-28 11:56:07 +00:00
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
2005-09-30 09:40:15 +00:00
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
2007-01-28 11:56:07 +00:00
all: lib
2007-01-18 08:36:36 +00:00
lib: $(C_OBJS)
2007-01-28 11:56:07 +00:00
$(AR) cr lib$(OUT).a $(C_OBJS)
2007-01-29 06:40:29 +00:00
if [ "$(RANLIB)" = "ranlib" ]; then ranlib libaseawk.a; fi
2007-01-18 08:36:36 +00:00
2005-09-30 09:40:15 +00:00
clean:
2007-01-28 11:56:07 +00:00
rm -rf $(OBJS) lib$(OUT).a *.o
2005-09-30 09:40:15 +00:00
2007-01-28 11:56:07 +00:00
.SUFFIXES: .c .o
2005-09-30 09:40:15 +00:00
.c.o:
$(CC) $(CFLAGS) -c $<
2007-01-18 08:36:36 +00:00