25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
403 B

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