21 lines
328 B
Makefile
21 lines
328 B
Makefile
SRCS = stx.c memory.c object.c hash.c misc.c context.c
|
|
OBJS = $(SRCS:.c=.o)
|
|
OUT = libxpstx.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 $<
|