makefile.unx 719 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # File: Makefile for samples
  3. # Author: Robert Roebling
  4. # Created: 1999
  5. # Updated:
  6. # Copyright: (c) 1998 Robert Roebling
  7. #
  8. # This makefile requires a Unix version of wxWindows
  9. # to be installed on your system. This is most often
  10. # done typing "make install" when using the complete
  11. # sources of wxWindows or by installing the two
  12. # RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm
  13. # under Linux.
  14. #
  15. CXX = $(shell wx-config --cxx)
  16. PROGRAM = life
  17. OBJECTS = $(PROGRAM).o dialogs.o game.o reader.o
  18. # implementation
  19. .SUFFIXES: .o .cpp
  20. .cpp.o :
  21. $(CXX) -c `wx-config --cxxflags` -o $@ $<
  22. all: $(PROGRAM)
  23. $(PROGRAM): $(OBJECTS)
  24. $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
  25. clean:
  26. rm -f *.o $(PROGRAM)