Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC = gcc
- CFLAGS = -O2 -Wall -Werror
- EXE = a.out
- OBJECTS = main.o work.o
- all : $(EXE)
- $(EXE) : $(OBJECTS)
- $(CC) $(OBJECTS) -o $(EXE)
- %.o : %.c
- $(CC) $(CFLAGS) -c -o $@ $<
- clean:
- rm *.o $(EXE)
- .PHONY: clean all
- # additional rules to take headers into account
- main.o: work.h
- work.o: work.h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement