feat(lab2): unix lab2 done
Lab 2 is in fact the first lab in the set of ones we actually do. It's not particularly hard, but consumed some time for me
This commit is contained in:
12
OSs/lab2/unix/part-B/Makefile
Normal file
12
OSs/lab2/unix/part-B/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
targets = main
|
||||
all: $(targets)
|
||||
|
||||
main: main.o
|
||||
$(CC) -o $@ $^ $(CFLAGS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $^ -o $@ $(CFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(targets)
|
||||
rm -f *.o
|
||||
Reference in New Issue
Block a user