aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-05-30 18:58:31 +0900
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-05-30 18:58:31 +0900
commit68a8d9124229447eeb07f0c5d5f0d6147096a3ce (patch)
treea0bbaca82303687e5ba545a08f529b543fb15267 /src
Initial commit
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/calculer.c27
2 files changed, 29 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..957d35d
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,2 @@
+bin_PROGRAMS = calculer
+calculer_SOURCES = calculer.c
diff --git a/src/calculer.c b/src/calculer.c
new file mode 100644
index 0000000..b1de0a4
--- /dev/null
+++ b/src/calculer.c
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2024 Tristan Riehs
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "config.h"
+
+#include <stdio.h>
+
+int
+main(void)
+{
+ printf("%s\n", PACKAGE_STRING);
+ return 0;
+}