21 lines
351 B
Makefile
21 lines
351 B
Makefile
SRCS = awk.c err.c tree.c tab.c map.c parse.c run.c sa.c val.c misc.c extio.c
|
|
OBJS = $(SRCS:.c=.o)
|
|
OUT = libxpawk.a
|
|
|
|
CC = @CC@
|
|
RANLIB = @RANLIB@
|
|
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
|
|
all: $(OBJS)
|
|
ar cr $(OUT) $(OBJS)
|
|
ranlib $(OUT)
|
|
|
|
clean:
|
|
rm -rf $(OBJS) $(OUT) *.o
|
|
|
|
.SUFFIXES: .c .o
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|