[Frugalware-git] pacman-frontend: import test program & makefile
James Buren
ryuo at frugalware.org
Mon Sep 26 20:50:29 CEST 2011
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-frontend.git;a=commitdiff;h=5da844e97817bf8ca15188f628c76b24043d23b7
commit 5da844e97817bf8ca15188f628c76b24043d23b7
Author: James Buren <ryuo at frugalware.org>
Date: Mon Sep 26 08:51:03 2011 -0500
import test program & makefile
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..93486c1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+%.o: %.c
+ cc -Wall -Wextra -std=c99 -O2 -g -c $< -o $@
+
+test: test.o pacman-frontend.o
+ cc -lpacman test.o pacman-frontend.o -o test
diff --git a/test.c b/test.c
new file mode 100644
index 0000000..d6dea8e
--- /dev/null
+++ b/test.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include "pacman-frontend.h"
+
+int main(void)
+{
+ if(pacman_frontend_initialize(0,0))
+ return 1;
+
+ return 0;
+}
More information about the Frugalware-git
mailing list