20 lines
294 B
Makefile
20 lines
294 B
Makefile
SRCS = awk.c
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
|
|
LDFLAGS = @LDFLAGS@ -L@abs_top_builddir@/awk
|
|
LIBS = @LIBS@ -laseawk -lm
|
|
|
|
all: awk
|
|
|
|
awk: $(OBJS)
|
|
$(CC) -o $@ awk.o $(LDFLAGS) $(LIBS)
|
|
|
|
clean:
|
|
rm -rf *.o awk
|
|
|
|
.SUFFIXES: .c .o
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) $<
|