#variables
SHELL = /bin/sh
objects = tmpfile.o
#compiler flags
CFLAGS = -g
#rules
tmpfile: $(objects)
cc -o tmpfile $(objects)
tmpfile.o: tmpfile.c
cc $(CFLAGS) -c tmpfile.c
clean:
rm -f $(objects)
SHELL = /bin/sh
objects = tmpfile.o
#compiler flags
CFLAGS = -g
#rules
tmpfile: $(objects)
cc -o tmpfile $(objects)
tmpfile.o: tmpfile.c
cc $(CFLAGS) -c tmpfile.c
clean:
rm -f $(objects)