
TARGET := factorial
DFLAGS := -funittest

all: $(TARGET)

$(TARGET): $(TARGET).d

%: %.d
	gdc -o $@ $(DFLAGS) $<

clean:
	-rm -f *.o *~ $(TARGET)
