This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/utils/mnetftn/Makefile

31 lines
629 B
Makefile
Raw Normal View History

2018-05-24 08:31:01 +00:00
CC=cc
CFLAGS=-I/usr/local/include -I../../deps/
DEPS = mnettoftn.c
JAMLIB = ../../deps/jamlib/jamlib.a
OBJ = mnettoftn.o
2018-05-24 09:53:32 +00:00
OBJ2 = ftntomnet.o
UUID = ../../deps/libuuid/.libs/libuuid.a
2018-05-24 08:31:01 +00:00
2018-05-24 09:53:32 +00:00
all: mnettoftn ftntomnet
2018-05-24 08:31:01 +00:00
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
2018-05-24 09:53:32 +00:00
$(UUID):
cd ../deps/libuuid/ && ./configure
cd ../deps/libuuid/ && $(MAKE)
2018-05-24 08:31:01 +00:00
$(JAMLIB):
cd ../../deps/jamlib && make -f Makefile.linux
2018-05-24 09:53:32 +00:00
ftntomnet: $(OBJ2) $(JAMLIB) $(UUID)
$(CC) -o ftntomnet $^ $(CFLAGS) -L/usr/local/lib
2018-05-24 08:31:01 +00:00
mnettoftn: $(OBJ) $(JAMLIB)
$(CC) -o mnettoftn $^ $(CFLAGS) -L/usr/local/lib
.PHONY: clean
clean:
2018-05-24 09:53:32 +00:00
rm -f $(OBJ) mnettoftn $(OBJ2) ftntomnet