Try to go the other way

This commit is contained in:
Andrew Pamment
2018-05-24 19:53:32 +10:00
parent 673e3f4423
commit b7de8486e4
3 changed files with 412 additions and 3 deletions

View File

@@ -3,19 +3,28 @@ CFLAGS=-I/usr/local/include -I../../deps/
DEPS = mnettoftn.c
JAMLIB = ../../deps/jamlib/jamlib.a
OBJ = mnettoftn.o
OBJ2 = ftntomnet.o
UUID = ../../deps/libuuid/.libs/libuuid.a
all: mnettoftn
all: mnettoftn ftntomnet
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
$(UUID):
cd ../deps/libuuid/ && ./configure
cd ../deps/libuuid/ && $(MAKE)
$(JAMLIB):
cd ../../deps/jamlib && make -f Makefile.linux
ftntomnet: $(OBJ2) $(JAMLIB) $(UUID)
$(CC) -o ftntomnet $^ $(CFLAGS) -L/usr/local/lib
mnettoftn: $(OBJ) $(JAMLIB)
$(CC) -o mnettoftn $^ $(CFLAGS) -L/usr/local/lib
.PHONY: clean
clean:
rm -f $(OBJ) mnettoftn
rm -f $(OBJ) mnettoftn $(OBJ2) ftntomnet