home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyos2bin.zip / Demo / embed / Makefile < prev    next >
Encoding:
Makefile  |  1997-07-19  |  827 b   |  43 lines

  1. # Makefile for embedded Python use demo.
  2. # (This version tailored for CNRI and Solaris; edit lines marked with XXX.)
  3.  
  4. # XXX The compiler you are using
  5. CC=         gcc
  6.  
  7. # XXX Top of the build tree and source tree
  8. blddir=        ../..
  9. srcdir=        ../..
  10.  
  11. # Python version
  12. VERSION=    1.5
  13.  
  14. # Compiler flags
  15. OPT=        -g
  16. INCLUDES=    -I$(srcdir)/Include -I$(blddir)
  17. CFLAGS=        $(OPT) $(INCLUDES)
  18.  
  19. # The Python library
  20. LIBPYTHON=        $(blddir)/libpython$(VERSION).a
  21.  
  22. # XXX edit LIBS (in particular) to match $(blddir)/Modules/Makefile
  23. LIBS=        -lsocket -lnsl -ldl  -lreadline -ltermcap
  24. SYSLIBS=    -lm
  25. MODLIBS=    
  26. ALLLIBS=    $(LIBPYTHON) $(MODLIBS) $(LIBS) $(SYSLIBS)
  27.  
  28. # Build the demo application
  29. all:        demo
  30. demo:        demo.o
  31.         $(CC) demo.o $(ALLLIBS) -o demo
  32.  
  33. # Administrative targets
  34.  
  35. test:        demo
  36.         ./demo
  37.  
  38. clean:
  39.         -rm -f *.o core
  40.  
  41. clobber:    clean
  42.         -rm -f *~ @* '#'* demo
  43.