qse/ase/utl/makefile.in

26 lines
391 B
Makefile
Raw Normal View History

2007-02-20 14:23:18 +00:00
OUT = aseutl
2007-02-20 14:50:35 +00:00
C_SRCS = main.c ctype.c stdio.c
2007-02-20 14:23:18 +00:00
C_OBJS = $(C_SRCS:.c=.o)
CC = @CC@
AR = ar
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
all: lib
lib: $(C_OBJS)
$(AR) cr lib$(OUT).a $(C_OBJS)
2007-02-21 04:18:09 +00:00
if [ "$(RANLIB)" = "ranlib" ]; then ranlib lib$(OUT).a; fi
2007-02-20 14:23:18 +00:00
clean:
rm -rf $(OBJS) lib$(OUT).a *.o
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $<