Parcourir la source

examples: remove cross-directory build dependencies.

tags/v0.99.beta20
Sam Hocevar il y a 9 ans
Parent
révision
32f430e69d
2 fichiers modifiés avec 5 ajouts et 16 suppressions
  1. +1
    -1
      examples/Makefile.am
  2. +4
    -15
      examples/trifiller.c

+ 1
- 1
examples/Makefile.am Voir le fichier

@@ -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 Voir le fichier

@@ -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


Chargement…
Annuler
Enregistrer