Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (28 sloc) 488 Bytes
#
# Makefile for TCP/IP stack
#
#
# Compilation constants
#
CC = gcc
LD = gcc
AR = ar
CFLAGS += -g -Wall -DVERBOSE #-DDEBUG_EVENTS
MAKE = make
export CFLAGS
#
# Project constants
#
DIRS=Arrays Events NetTAP Stack
#
# Main target
#
all: $(patsubst %, _dir_%, $(DIRS))
$(patsubst %,_dir_%,$(DIRS)):
cd $(patsubst _dir_%,%,$@) && $(MAKE)
#
# Cleaning target
#
clean: $(patsubst %, _clean_%, $(DIRS))
$(patsubst %,_clean_%,$(DIRS)):
cd $(patsubst _clean_%,%,$@) && $(MAKE) clean