# This sample Makefile allows you to compile exactly one .c file. # # To use this Makefile, you must type: # # make PROG=xxxx # ---- # where # xxxx.c is the name of the file you wish to compile. # ---- CC = gcc #CC = /home/sun4/bin/gcc GCCFLAGS = -ansi -fpcc-struct-return CFLAGS = -g LDLIBS = -lm $(PROG): $(CC) $(GCCFLAGS) $(CFLAGS) $(PROG).c $(LDLIBS) -o $(PROG)