Makefile - SIZE32=-m32 SIZE64=-m64 # If your compiler is...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
# CPE 357 # ------------------- # makefile for clone of unexpand(1) # # Last Modified: Mon Oct 5 09:09:37 PDT 2009 # @author Kevin O'Gorman CC=gcc # Choose one of these in the CFLAGS line SUS3=-D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -std=c99 SUS2=-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -ansi SUS1=-D_POSIX_SOURCE -D_POSIX_C_SOURCE=2 -D_XOPEN_SOURCE=1 -ansi -D_XOPEN_SOURCE_EXTENDED=1 # Choose one of these in the CFLAGS line; only choose 64 if your compiler and hardware support it
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: SIZE32=-m32 SIZE64=-m64 # If your compiler is gcc, this can help find memory problems at compile-time. For some # systems, the MALLOC_CHECK environment variable helps too, but this has to be asserted # at run time, so there's nothing we can do about it here. HARDEN=-D_FORTIFY_SOURCE=2 CFLAGS=-Wall -g -pedantic $(SIZE32) $(HARDEN) $(SUS2) LDFLAGS= ALL=proj1 all: $(ALL) proj1: proj1.c proj1.h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< Doxyfile: doxygen -g clean: rm -rf core* *.o *.gch $(ALL)...
View Full Document

Ask a homework question - tutors are online