19 lines
195 B
Makefile
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)
|