exo 1 + pgl
This commit is contained in:
20
bac2/os/chap3/Makefile
Normal file
20
bac2/os/chap3/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
.PHONY: clean, mrproper
|
||||
CC = gcc
|
||||
CFLAGS = -g -Wall
|
||||
|
||||
all: ex1
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
ex1: ex1.o
|
||||
$(CC) $(CFLAGS) -o $@ $+
|
||||
|
||||
clean:
|
||||
rm -f *.o core.*
|
||||
|
||||
mrproper: clean
|
||||
rm -f ex1
|
||||
|
||||
run: ex1
|
||||
./$<
|
Reference in New Issue
Block a user