Skip to content

Commit

Permalink
more Makefile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 8, 2011
1 parent 91b4671 commit 0cb7399
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
@@ -1,4 +1,3 @@
.DS_Store
node_modules
*.sock
bin
*.o
16 changes: 14 additions & 2 deletions Makefile
@@ -1,8 +1,20 @@

CC ?= gcc

SRC = src/cdescent.c \
src/compile.c \
src/tree.c

bin/cdescent:
OBJ = $(SRC:.c=.o)

bin/cdescent: $(OBJ)
@mkdir -p bin
$(CC) -03 $(SRC) -o $@
$(CC) -03 $^ -o $@

%.o: %.c
$(CC) $< -c -o $@

clean:
rm -fr bin src/*.o

.PHONY: clean

0 comments on commit 0cb7399

Please sign in to comment.