%.x : %.c # -splint +strict +unixlib $< # Solaris or Linux or Mac OS X -gcc -ansi -Wall -Wextra -pedantic -o $@ $< # -gcc -std=c99 -Wall -Wextra -pedantic -o $@ $< # -gcc -m64 -ansi -Wall -Wextra -pedantic -o $@ $< # -gcc -m64 -std=c99 -Wall -Wextra -pedantic -o $@ $< # Solaris # -cc -v -o $@ $< # -cc -v -o $@ -xarch=v9 $< # -cc -v -o $@ -xarch=generic64 $< # -cc -v -o $@ -m64 $< # -c99 -v -o $@ $< # -c99 -v -o $@ -xarch=v9 $< # -c99 -v -o $@ -xarch=generic64 $< # -c99 -v -o $@ -m64 $< s%.c : h%.c tr '@' ' ' < $< > $@ SRC = h1.c OBJ = $(SRC:.c=.x) STRIPPED_SRC = $(subst h,s,$(SRC)) STRIPPED_OBJ = $(STRIPPED_SRC:.c=.x) all: $(OBJ) stripped: $(STRIPPED_OBJ) gdbdemo: gcc -g -Wall -Wextra -o h1.x h1.c clean: -rm a.out *.x core core.*