From 5c508c9698d49f852834baff8bd3e2fb93370a0f Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Fri, 27 Feb 2026 21:05:34 +0800 Subject: Initial commit: makefile, main, gitignore. --- .gitignore | 5 +++++ Makefile | 21 +++++++++++++++++++++ main.c | 4 ++++ 3 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 main.c 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; +} -- cgit v1.2.3