2011-06-18 18:07:11 +00:00
|
|
|
CD = cd
|
|
|
|
RM = rm -v
|
|
|
|
|
2011-06-18 19:06:29 +00:00
|
|
|
CC := gcc
|
2011-06-19 22:27:45 +00:00
|
|
|
CFLAGS := -std=c99 -Wall -g
|
2011-06-18 18:28:00 +00:00
|
|
|
|
2011-11-06 14:53:00 +00:00
|
|
|
ALL_TARGETS := $(patsubst %.c,%,$(wildcard *.c))
|
|
|
|
|
2011-06-18 18:28:00 +00:00
|
|
|
export CD RM CFLAGS
|
2011-06-13 03:02:18 +00:00
|
|
|
|
|
|
|
|
2011-11-06 14:53:00 +00:00
|
|
|
all: $(ALL_TARGETS)
|
2011-06-18 18:07:11 +00:00
|
|
|
$(CD) gowrikumar && $(MAKE)
|
2011-06-19 22:27:45 +00:00
|
|
|
$(CD) gdbtut && $(MAKE)
|
2011-06-13 03:02:18 +00:00
|
|
|
|
2011-06-17 01:48:15 +00:00
|
|
|
clean:
|
2011-06-18 18:07:11 +00:00
|
|
|
$(CD) gowrikumar && $(MAKE) clean
|
2011-06-19 22:27:45 +00:00
|
|
|
$(CD) gdbtut && $(MAKE) clean
|
2011-06-13 03:02:18 +00:00
|
|
|
|
2011-06-17 01:48:15 +00:00
|
|
|
|
|
|
|
.PHONY: all clean
|