tdc: move test program to test directory

Signed-off-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsalvez <siglesias@igalia.com>
parent 06cc6666
......@@ -6,7 +6,7 @@ LOBJ := libtdc.o
CFLAGS = -Wall -ggdb -I.. -I$(ZIO)/include
LDFLAGS = -L. -ltdc
modules all: lib test
modules all: lib
lib: $(LIB)
......@@ -16,7 +16,5 @@ lib: $(LIB)
$(LIB): $(LOBJ)
ar r $@ $^
test: test.o
clean:
rm -f $(LIB) *.o *~ test
rm -f $(LIB) *.o *~
all:
ZIO ?= $(HOME)/dependencies/zio
LIB = libtdc.a
LOBJ := libtdc.o
CFLAGS = -Wall -ggdb -I.. -I../lib -I$(ZIO)/include
LDFLAGS = -L../lib/ -ltdc
modules all: lib test
lib:
$(MAKE) -C ../lib
test:
$(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
.PHONY: all
clean:
$(RM) *.a *.o
$(MAKE) clean -C ../lib
rm -f *.o *~ test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment