瀏覽代碼

examples: remove cross-directory build dependencies.

tags/v0.99.beta20
Sam Hocevar 9 年之前
父節點
當前提交
32f430e69d
共有 2 個檔案被更改,包括 5 行新增16 行删除
  1. +1
    -1
      examples/Makefile.am
  2. +4
    -15
      examples/trifiller.c

+ 1
- 1
examples/Makefile.am 查看文件

@@ -7,7 +7,7 @@ if USE_CXX
conio_snake = conio-snake
endif

trifiller_SOURCES = trifiller.c ../src/common-image.c
trifiller_SOURCES = trifiller.c
trifiller_CFLAGS = $(IMLIB2_CFLAGS)
trifiller_LDFLAGS = $(IMLIB2_LIBS)
trifiller_LDADD = ../caca/libcaca.la -lm


+ 4
- 15
examples/trifiller.c 查看文件

@@ -10,22 +10,11 @@
* http://www.wtfpl.net/ for more details.
*/

/* This will include config.h and everything else */
#include "../src/common-image.c"

#include "config.h"

#if !defined(__KERNEL__)
# include <stdio.h>
# include <string.h>
#endif

/* libcaca header */
#include "caca.h"

/* Image loading functions */
#include "../src/common-image.h"

/* M_PI / cos / sin */
#include <math.h>
#include <stdio.h> /* fprintf */
#include <math.h> /* M_PI / cos / sin */


#define SQUARE_SIZE 20


Loading…
取消
儲存