23 lines
342 B
Makefile
23 lines
342 B
Makefile
GETOPT = ${topdir}/builtins/getopt.o
|
|
OBJECTS = texindex.o $(GETOPT)
|
|
SOURCES = texindex.c
|
|
|
|
LDFLAGS = -g
|
|
|
|
srcdir = .
|
|
VPATH = .:$(srcdir)
|
|
|
|
.c.o:
|
|
rm -f $@
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
all: texindex
|
|
|
|
texindex: texindex.o
|
|
$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
|
|
|
|
clean:
|
|
rm -f texindex.o
|
|
|
|
realclean distclean maintainer-clean: clean
|
|
rm -f texindex
|