13 lines
351 B
Makefile
13 lines
351 B
Makefile
#put the most commonly desired target first (default)
|
|
all: main.o write-location-file.o
|
|
gcc main.o write-location-file.o -o write
|
|
main.o: main.c write-location-file.h
|
|
gcc -I . -c main.c
|
|
write-location-file.o: write-location-file.c write-location-file.h
|
|
gcc -I . -c write-location-file.c
|
|
clean:
|
|
rm -rf *.o
|
|
rm -rf write
|
|
rm -rf *.csv
|
|
rm -rf a.out
|