# # Makefile for xdl -- modify to fit your site. # # Jonas Yngvesson # # # If your system haven't setitimer and/or getitimer, uncomment # next line. #TIMER = -DNO_ITIMER # # If your running on a non-bsd system that defines u_long et al # in /usr/include/sys/bsdtypes.h, like Interactive 386/ix, # uncomment next line: #BSDT = -DBSDTYPES # # On Interactive 386/ix, you need the nsl_s library, uncomment # next line. #IXLIBS = -lnsl_s # # Modify these to fit the compiler setup on your system. CC ?= gcc CFLAGS += -I${X11BASE}/include LIBS += -L${X11BASE}/lib -lX11 $(IXLIBS) # # These specify where to install the binary # and the manual. BINDIR = ${PREFIX}/bin MANDIR = ${PREFIX}/man/man1 MANEXT = 1 all: xdl xdl: xdl.c $(CC) $(CFLAGS) $(TIMER) $(BSDT) -o xdl xdl.c $(LIBS) install: xdl xdl.man ${BSD_INSTALL_PROGRAM} xdl $(BINDIR) ${BSD_INSTALL_MAN} xdl.man $(MANDIR)/xdl.$(MANEXT) clean: $(RM) xdl *.o *~ core