4600-homework-1/Makefile
John Breaux b304263af0 Makefile: make file
syscalls: Solve question 2
2022-02-21 19:26:52 -06:00

19 lines
195 B
Makefile

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)