Ignore:
Timestamp:
May 21, 2010, 1:32:35 AM (12 years ago)
Author:
Sam Hocevar
Message:

New improved ctypes-based Python bindings, by Alex Foulon <alxf@lavabit.com>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/python/Makefile.am

    r4333 r4398  
    11
    2 EXTRA_DIST = caca.txt pypycaca.c pypycaca.h snake.py test1.py test2.py
     2if USE_PYTHON
     3python_PYTHON = \
     4    caca/__init__.py \
     5    caca/canvas.py \
     6    caca/common.py \
     7    caca/display.py \
     8    caca/dither.py \
     9    caca/font.py
     10endif
    311
    4 CC = gcc
    5 RM = rm -f
    6 CACAFLAGS = `caca-config --cflags`
    7 CACALIBS  = `caca-config --libs`
     12EXTRA_DIST = \
     13    setup.py \
     14    examples/cacainfo.py \
     15    examples/drawing.py \
     16    examples/gol.py
    817
    9 PYTHONFLAGS = -I/usr/include/python2.4
    10 PYTHONLIBS = -lpython2.4
    11 
    12 NAME = caca.so
    13 
    14 all:
    15 
    16 python:
    17         $(CC) pypycaca.c -c $(CACAFLAGS) $(PYTHONFLAGS) -Wall
    18         $(LD) pypycaca.o -o $(NAME) $(CACALIBS) $(PYTHONLIBS) -shared
    19 
    20 
    21 clean:
    22         $(RM) *.o $(NAME)
Note: See TracChangeset for help on using the changeset viewer.