# # Makefile for xloadface # # # OS: -DBSD or -DSYSV. If you have and struct direct for directory # operations, define -DBSD. # OS=-DBSD # # ICON: If you want to use default bitmap icon, define ICON as -DBITMAP_ICON. # ICON=-DBITMAP_ICON # # INCLUDES: If your machine's OS is System-V with some BSD features, # you might define -I/usr/include/bsd, -I/usr/ucbinclude, etc. # #INCLUDES=-I/usr/include/bsd # # NETLIBS: Define network libraries. BSD machines don't need this define. # #NETLIBS=-lbsd # # ODEF: Other defines. If your X11 is R5, define ODEF as -DX11R5. # #ODEF=-DX11R5 CFLAGS=-O $(OS) $(ICON) $(INCLUDES) $(ODEF) WIDGETOBJS=LabeledPicture.o ArrangeBox.o LoadFace.o MachineInfo.o LIBS=-lXaw -lXmu -lXt -lX11 $(NETLIBS) -lm OBJS=main.o widgets.o xetc.o all: xloadface xloadface: $(OBJS) $(WIDGETOBJS) cc $(CFLAGS) $(OBJS) $(WIDGETOBJS) -o xloadface $(LIBS) ArrangeBox.o: ArrangeBox.c ArrangeBox.h ArrangeBoxP.h LabeledPicture.o: LabeledPicture.c LabeledPicture.h LabeledPictureP.h LoadFace.o: LoadFace.c LoadFace.h LoadFaceP.h MachineInfo.o: MachineInfo.c MachineInfo.h MachineInfoP.h $(OBJS): xvars.h alive.h widgets.c: ArrangeBox.h LoadFace.h LabeledPicture.h MachineInfo.h clean: rm -rf $(OBJS) $(WIDGETOBJS) *~ core xloadface