1 2 3 4 5 6 7 8 9 10 11 12 13 14
SRC=$(wildcard *.c) OBJ=$(SRC:.c=) all: ${OBJ} options: @echo SRC: ${SRC} @echo OBJ: ${OBJ} %: %.c gcc $< -o $@ ../lib/slib.a -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -fno-builtin -g clean: rm ${OBJ}