Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- MakeFile -*-
- # The make file for the C and C++ files in this directory
- #target: dependencies
- #action # MUST BE A TAB, that first line (allegedly) tells editor to use tab not spaces
- # dependencies: Anything that's needed to build your .o files and executables
- # .h files are included too! Because if they change but not the .c file itself, it won't get
- # recompiled...
- all: main
- main: main.o bubbleSort.o
- gcc main.o bubbleSort.o -o main # -l m
- bubbleSort.o: bubbleSort.c
- gcc -g -c bubbleSort.c
- main.o: main.c bubbleSort.h
- gcc -g -c main.c
- clean:
- rm *.o main
- # removing all .o's, and the 2 executables
- # Now everything works, can we make it better though?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement