You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
413 B

  1. # $Id: $
  2. EXTRA_DIST = caca.txt pypycaca.c pypycaca.h snake.py test1.py test2.py
  3. CC = gcc
  4. RM = rm -f
  5. CACAFLAGS = `caca-config --cflags`
  6. CACALIBS = `caca-config --libs`
  7. PYTHONFLAGS = -I/usr/include/python2.4
  8. PYTHONLIBS = -lpython2.4
  9. NAME = caca.so
  10. all:
  11. python:
  12. $(CC) pypycaca.c -c $(CACAFLAGS) $(PYTHONFLAGS) -Wall
  13. $(LD) pypycaca.o -o $(NAME) $(CACALIBS) $(PYTHONLIBS) -shared
  14. clean:
  15. $(RM) *.o $(NAME)