diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2026-02-27 21:05:34 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2026-02-27 21:05:34 +0800 |
| commit | 5c508c9698d49f852834baff8bd3e2fb93370a0f (patch) | |
| tree | e9d17cbaacbc7f98dba5a6e5bc391d61e88b598e | |
| download | cvn-5c508c9698d49f852834baff8bd3e2fb93370a0f.tar.gz | |
Initial commit: makefile, main, gitignore.
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | Makefile | 21 | ||||
| -rw-r--r-- | main.c | 4 |
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) @@ -0,0 +1,4 @@ +int main(int argc, char *argv[]) +{ + return 0; +} |
