have a makefile

This commit is contained in:
comex
2011-03-28 23:09:38 -04:00
parent 497ac816b5
commit 571e200ecf
4 changed files with 45 additions and 0 deletions

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
DATA = $(word 1,$(wildcard ./data ../data))
include $(DATA)/Makefile.common
OBJS = check_sanity make_kernel_patchfile apply_patchfile
all: .settings $(OBJS)
%: %.c
make -C $(DATA)
$(GCC) $(CFLAGS) -o $@ $< -I$(DATA) $(DATA)/libdata.a
clean:
rm -f $(OBJS)