liblash

Basic tools written and used by lash in c programming.
Info | Log | Files | Refs

Makefile (290B)


      1 TESTS := $(patsubst %.c,%.testbin,$(wildcard *.c))
      2 LINKOBJS := $(wildcard ../*.o)
      3 CFLAGS += -I.. -Wall
      4 
      5 all: $(TESTS)
      6 
      7 %.testbin: %.c
      8 	$(CC) $(CFLAGS) $< -o $@ $(LINKOBJS)
      9 	./$@
     10 
     11 #test_run: $(wildcard out_*)
     12 #	for f in $^; do ./$$f; done
     13 
     14 test: all
     15 
     16 clean:
     17 	rm -vf *.testbin
     18 
     19 .PHONY: clean