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/mnetsubunsub/Makefile

27 lines
534 B
Makefile
Raw Normal View History

2018-05-24 04:05:00 +00:00
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