diff --git a/src/global.mk b/src/global.mk new file mode 100644 index 0000000..52b1c3e --- /dev/null +++ b/src/global.mk @@ -0,0 +1,6 @@ + +MACHINE=MAC_OS_X + +%.o: %.c + gcc -D$(MACHINE) -c -O2 -o $@ $< + \ No newline at end of file diff --git a/src/libapat/Makefile b/src/libapat/Makefile new file mode 100644 index 0000000..d055c4c --- /dev/null +++ b/src/libapat/Makefile @@ -0,0 +1,18 @@ +include ../global.mk + +SOURCES = apat_parse.c \ + apat_search.c \ + libstki.c + +OBJECTS= $(patsubst %.c,%.o,$(SOURCES)) + +LIBFILE= libapat.a + +all: $(LIBFILE) + +clean: + rm -rf $(OBJECTS) $(LIBFILE) + +$(LIBFILE): $(OBJECTS) + ar -cr $@ $? +