Advertisement
shortspecialbus

Makefile

May 19th, 2021
2,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.44 KB | None | 0 0
  1. ###################
  2. #
  3. # Makefile for Project 1
  4. #
  5. # Written by Stefan Strandberg (stefan@cs.wisc.edu
  6. # $Id: Makefile,v 1.4 2004/09/23 20:34:59 stefan Exp $
  7. #
  8. ###################
  9.  
  10. CC = /s/std/bin/gcc
  11. COPTS = -O -Wall
  12.  
  13. all: main.o shell.o job.o
  14.     $(CC) -o shell main.o job.o shell.o -lm
  15.  
  16. main.o: main.c
  17.     $(CC) $(COPTS) -c main.c
  18.  
  19. shell.o: shell.c
  20.     $(CC) $(COPTS) -c shell.c
  21.  
  22. job.o: job.c
  23.     $(CC) $(COPTS) -c job.c
  24.  
  25. clean:
  26.     rm -f main.o shell.o job.o
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement