commit 2b40343521c9020cfb667f0b16878cbb7252b348 from: Thomas date: Thu Mar 28 13:06:12 2019 UTC added Makefile commit - ece3b2e467730a16fc3430fc5b760d1ce5b94185 commit + 2b40343521c9020cfb667f0b16878cbb7252b348 blob - /dev/null blob + cd2dc80b9bbf2149066dfbd384f57dce5b114064 (mode 644) --- /dev/null +++ Makefile @@ -0,0 +1,23 @@ +# use tcc to compile +CC = tcc +# -Wall: turn on most, but not all, compiler warnings +CFLAGS = -Wall +# the target executable file +TARGET = id3r + +# typing 'make' will invoke the first target entry; here: default +default: $(TARGET) + +# to build the TARGET executable file we need the source files +# id3v1.o +$(TARGET): id3v1.o + $(CC) $(CFLAGS) -o $(TARGET) id3v1.o + +# to create the object file id3v1.o we need the source files +# id3v1.c +id3v1.o: id3v1.c + $(CC) $(CFLAGS) -c id3v1.c + +# starting over from scratch, removes all object files and the executable file +clean: + rm $(TARGET) *.o