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

25 lines
504 B
Makefile
Raw Normal View History

2018-06-24 00:28:18 +00:00
CC=cc
CFLAGS=-I/usr/local/include -ggdb
2018-10-27 12:32:21 +00:00
DEPS = qwktoss.c qwkscan.c
2018-06-24 00:28:18 +00:00
JAMLIB = ../../deps/jamlib/jamlib.a
OBJ = qwktoss.o ../../src/inih/ini.o
2018-10-27 12:32:21 +00:00
SOBJ = qwkscan.o ../../src/inih/ini.o
2018-06-24 00:28:18 +00:00
2018-10-27 12:32:21 +00:00
all: qwktoss qwkscan
2018-06-24 00:28:18 +00:00
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
$(JAMLIB):
cd ../../deps/jamlib && make -f Makefile.linux
qwktoss: $(OBJ) $(JAMLIB)
$(CC) -o qwktoss $^ $(CFLAGS) -L/usr/local/lib
2018-10-27 12:32:21 +00:00
qwkscan: $(SOBJ) $(JAMLIB)
$(CC) -o qwkscan $^ $(CFLAGS) -L/usr/local/lib
2018-06-24 00:28:18 +00:00
.PHONY: clean
clean:
rm -f $(OBJ) qwktoss