#CC = @CC@
CFLAGS = @CFLAGS@ -I@x_includes@
#CPPFLAGS = @CPPFLAGS@
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
XLIBS = -L@x_libraries@ -lX11 $(LIBS)
X_CFLAGS = -I@x_includes@
SRCS = xsysstats.c porting.c
OBJS = xsysstats.o porting.o
HDRS = xsysstats.h
prefix = @prefix@
exec_prefix = @exec_prefix@
# program to install with. cp would probably work
INSTALL = @INSTALL@
#where to install the program
BINDIR = @bindir@
#where to put the man page, and its extension
MANDIR = @mandir@/man1
xsysstats: $(OBJS)
$(CC) $(X_CFLAGS) $(LDFLAGS) $^ -o $@ $(XLIBS)
xysstats.o: xsysstats.c xsysstats.h config.h headers.h
porting.o: xsysstats.c xsysstats.h config.h headers.h
install:
mkdir -p $(BINDIR)
$(INSTALL) xsysstats $(BINDIR)/xsysstats
mkdir -p $(MANDIR)
$(INSTALL) xsysstats.man $(MANDIR)/xsysstats.1
clean:
rm -f *.o core xsysstats
syntax highlighted by Code2HTML, v. 0.9.1