
COMPILER = cc
XLIBS =  -lXm -lXt -lX11 
CENTERLIB = libCenter.a
OUTPUT = demo

$(OUTPUT): main.o Center.o
	ar rv $(CENTERLIB) Center.o
	$(COMPILER) main.o $(CENTERLIB) $(XLIBS) -o $(OUTPUT)

main.o: main.c Center.c Center.h CenterP.h
	$(COMPILER) -c main.c

Center.o: Center.c Center.h CenterP.h
	$(COMPILER) -c Center.c

