summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2026-02-27 21:05:34 +0800
committerSadeep Madurange <sadeep@asciimx.com>2026-02-27 21:05:34 +0800
commit5c508c9698d49f852834baff8bd3e2fb93370a0f (patch)
treee9d17cbaacbc7f98dba5a6e5bc391d61e88b598e
downloadcvn-5c508c9698d49f852834baff8bd3e2fb93370a0f.tar.gz
Initial commit: makefile, main, gitignore.
-rw-r--r--.gitignore5
-rw-r--r--Makefile21
-rw-r--r--main.c4
3 files changed, 30 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c803222
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+svs
+**/*.o
+**/*.out
+**/*.swp
+**/*.core
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..780931c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+CC = cc
+TARGET = svs
+
+SRC = main.c
+OBJ = $(SRC:.c=.o)
+
+CFLAGS = -std=c99 -O3 -Wall -I/usr/local/include
+LDFLAGS = -L/usr/local/lib
+
+all: $(TARGET)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+$(TARGET): $(OBJ)
+ $(CC) $(OBJ) -o $(TARGET) $(LDFLAGS)
+
+.PHONY: clean
+
+clean:
+ rm -f $(OBJ) $(TARGET)
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..50bc2c9
--- /dev/null
+++ b/main.c
@@ -0,0 +1,4 @@
+int main(int argc, char *argv[])
+{
+ return 0;
+}