1 CFLAGS = -g 2 INCLUDE = -I/global/include 3 LFLAGS = -L/global/lib 4 OBJS = ShowEvent.o sample.o 5 LIBS = -lX11 6 7 all: sample 8 9 .c.o: 10 $(CC) $(INCLUDE) $(CFLAGS) -c $< 11 12 sample: $(OBJS) 13 $(CC) $(LFLAGS) $(OBJS) $(LIBS) -o sample