Makefile (1)

Makefile (1) - -DXOPEN_SOURCE_EXTENDED=1...

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

View Full Document Right Arrow Icon
# CPE 357 # ------------------- # makefile for solutions # # Last Modified: Fri Sep 25 14:18:12 PDT 2009 # @author Kevin O'Gorman CC=gcc # The _POSIX_* symbols only come into play on systems that are POSIX # but not SUS. SUS3=-D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 SUS2=-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 SUS1=-D_POSIX_SOURCE -D_POSIX_C_SOURCE=2 -D_XOPEN_SOURCE
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -DXOPEN_SOURCE_EXTENDED=1 HARDEN=-D_FORTIFY_SOURCE CFLAGS=-Wall -g -ansi -pedantic $(SUS2) $(HARDEN) LDFLAGS= ALL=lab01b all: $(ALL) lab01b: driver1b.o lab01b.o $(CC) $(LDFLAGS) -o $@ $^ lab01b.o: lab01b.c lab01b.h $(CC) $(CFLAGS) -c $< driver1b.o: driver1b.c lab01b.h $(CC) $(CFLAGS) -c $< test: $(ALL) sum driver1b.c lab01b.h Makefile ./lab01b clean: rm -rf core* *.o *.gch $(ALL)...
View Full Document

This note was uploaded on 10/12/2009 for the course CPE 357 taught by Professor O'gorman during the Spring '09 term at Cal Poly.

Ask a homework question - tutors are online