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