GCCFLAGS += -I$(OPENWINHOME)/include LDFLAGS += -L$(OPENWINHOME)/lib LDLIBS += -lxview -lolgx PSOURCES += p.o PCLOPTIONS += --extended-syntax XSOURCES += x_message.o test : $(PSOURCES) $(XSOURCES) gpc -o test $(PSOURCES) $(XSOURCES) $(LDFLAGS) $(LDLIBS) $(PCLOPTIONS) x_message.o : x_message.c gcc -c x_message.c $(GCCFLAGS) p.o : p.p gpc -c p.p clean: rm *.o test