CC = gcc CFLAGS = OBJECTS := syscalls.o EXEC := syscalls .PHONY: all clean all: $(EXEC) %: %.o $(CC) $(CFLAGS) -o $@ $^ %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< clean: rm $(OBJECTS) $(EXEC)