Mercurial > mxe-octave
changeset 1311:dfc67c276c6b
add test program for package smpeg
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 10 Oct 2010 13:46:35 +0200 |
parents | 577eee4fabb7 |
children | 4e5785e62a10 |
files | src/smpeg-test.c src/smpeg.mk |
diffstat | 2 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/smpeg-test.c Sun Oct 10 13:46:35 2010 +0200 @@ -0,0 +1,18 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <smpeg.h> +#include <stdio.h> + +int main(int argc, char *argv[]) +{ + SMPEG_version v; + + (void)argc; + (void)argv; + + SMPEG_VERSION(&v); + printf("SMPEG version: %d.%d.%d\n", v.major, v.minor, v.patch); + + return 0; +}
--- a/src/smpeg.mk Sun Oct 10 12:09:03 2010 +0200 +++ b/src/smpeg.mk Sun Oct 10 13:46:35 2010 +0200 @@ -33,4 +33,9 @@ --disable-opengl-player \ CFLAGS='-ffriend-injection' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + '$(TARGET)-gcc' \ + -W -Wall -Werror -std=c99 -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-smpeg.exe' \ + `'$(PREFIX)/$(TARGET)/bin/smpeg-config' --cflags --libs` endef