Initial commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bin/
|
||||
19
Makefile
Normal file
19
Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
.PHONY: all clean
|
||||
|
||||
SRC := main.c
|
||||
BINDIR := bin
|
||||
OBJ := $(SRC:%.c=$(BINDIR)/%.o)
|
||||
|
||||
all: c2
|
||||
|
||||
clean:
|
||||
rm -rv bin
|
||||
|
||||
c2: $(OBJ)
|
||||
gcc -o $@ $<
|
||||
|
||||
$(BINDIR)/%.o: %.c
|
||||
gcc -c -o $@ $<
|
||||
|
||||
$(BINDIR):
|
||||
mkdir -p $(BINDIR)
|
||||
Reference in New Issue
Block a user