4600-homework-1/Makefile

19 lines
195 B
Makefile
Raw Normal View History

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)