CC = cc X_INCL = # location of X include files, if needed # A lot of popular terminals are brain damaged, so we cannot use X # resources for configuration. In those cases Xt routines won't even be # called, so you might want to use lazy loading for Xt if your OS supports it. X_LIBS = -lXt -lX11 # X libs XF_LIB = -L/usr/local/lib -lcompface # compface library C_FLAGS = -O prefix = /usr/local # No need to configure anything below. CFLAGS = $(C_FLAGS) $(X_INCL) LDFLAGS = $(XF_LIB) $(X_LIBS) slrnface: slrnface.c $(CC) $(CFLAGS) -o slrnface slrnface.c $(LDFLAGS) clean: rm -f *.o core slrnface install: slrnface mkdir -p $(prefix)/bin mkdir -p $(prefix)/man/man1 mkdir -p $(prefix)/share/slrn/macros cp slrnface $(prefix)/bin cp slrnface.1 $(prefix)/man/man1 cp slrnface.sl $(prefix)/share/slrn/macros