21 lines
304 B
Makefile
21 lines
304 B
Makefile
SRCS = lsp.c
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
|
|
LDFLAGS = @LDFLAGS@ -L@abs_top_builddir@/lsp
|
|
LIBS = @LIBS@ -laselsp -lm
|
|
|
|
all: aselsp
|
|
|
|
aselsp: $(OBJS)
|
|
$(CC) -o $@ lsp.o $(LDFLAGS) $(LIBS)
|
|
|
|
clean:
|
|
rm -rf *.o aselsp
|
|
|
|
.SUFFIXES: .c .o
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) $<
|
|
|