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