PROJ := trdetz
CC := gcc
CCFLAGS := -Wall -ansi -pedantic
LINKER := gcc
LIBS := -lm
LDFLAGS :=
#LDFLAGS := -static

%.o : %.c
	${CC} ${CCFLAGS} -c -o $@ $<

.PHONY : clean

.PHONY: all

all: ${PROJ}

main.o: trd.h defines.h exception_t.h

trd.o: trd.h defines.h exception_t.h

clean:
	rm -f *.o
	rm -f ${PROJ}

${PROJ}: trd.o main.o exception_t.o
	${LINKER} -o $@ $^ ${LDFLAGS} ${LIBS}	
	strip $@


#EOF