CC=cc CFLAGS=-I/usr/local/include -I../../deps/ DEPS = mnetsubunsub.c JAMLIB = ../../deps/jamlib/jamlib.a LIBUUID = ../../deps/libuuid/.libs/libuuid.a OBJ = mnetsubunsub.o all: mnetsubunsub %.o: %.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) $(JAMLIB): cd ../../deps/jamlib && make -f Makefile.linux $(LIBUUID): cd ../../deps/libuuuid && ./configure cd ../../deps/libuuuid && $(MAKE) mnetsubunsub: $(OBJ) $(JAMLIB) $(LIBUUID) $(CC) -o mnetsubunsub $^ $(CFLAGS) -L/usr/local/lib .PHONY: clean clean: rm -f $(OBJ) mnetsubunsub