Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (16 sloc) 379 Bytes
BIN := nush
SRCS := $(wildcard *.c)
OBJS := $(SRCS:.c=.o)
CFLAGS := -g
LDLIBS :=
$(BIN): $(OBJS)
$(CC) -o $@ $(OBJS) $(LDLIBS)
%.o : %.c $(wildcard *.h)
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -rf *.o $(BIN) tmp *.plist valgrind.out main.out
test: $(BIN)
perl test.pl
valgrind: $(BIN)
valgrind -q --leak-check=full --log-file=valgrind.out ./$(BIN)
.PHONY: clean test
You can’t perform that action at this time.