Compare commits

..

2 Commits

Author SHA1 Message Date
noah metz f72a5a69cd Update makefile and gitignore 2025-02-04 22:15:34 -07:00
noah metz 70d422e59d Added simple makefile and gitignore 2025-02-04 22:13:22 -07:00
3 changed files with 29 additions and 0 deletions

4
.gitignore vendored

@ -0,0 +1,4 @@
*.o
simulacrum
compile_commands.json
.cache

@ -0,0 +1,22 @@
APPLICATION=simulacrum
CC? = gcc
CFLAGS = -I./include
SOURCES = $(wildcard ./src/*.c)
OBJECTS = $(patsubst %.c,%.o, $(SOURCES))
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
$(APPLICATION): $(OBJECTS)
$(CC) -o $@ $^ $(CFLAGS)
clean:
rm -f $(APPLICATION)
rm -f $(OBJECTS)
.PHONY: all
all: $(APPLICATION)

@ -0,0 +1,3 @@
int main(int argc, char* argv[]) {
return 0;
}