ref: 5756da56d1026165a7c130b8aa3b81265f08c864
dir: /Makefile/
SRCS := $(wildcard js*.c) HDRS := $(wildcard js*.h) OBJS := $(SRCS:%.c=build/%.o) CFLAGS = -Wall -g default: build js build: mkdir -p build build/%.o : %.c $(HDRS) $(CC) -c $< -o $@ $(CFLAGS) build/libjs.a: $(OBJS) ar cru $@ $^ js: build/main.o build/libjs.a $(CC) -o $@ $^ -lm tags: $(SRCS) $(HDRS) ctags $^ clean: rm -f build/* js