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

26 lines
511 B
Makefile
Raw Permalink Normal View History

2018-06-24 00:28:18 +00:00
CC=cc
2018-11-04 07:45:02 +00:00
CFLAGS=-I/usr/local/include
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):
2018-11-04 07:45:02 +00:00
cd ../../deps/jamlib && make -f $(JAMMAKE)
2018-06-24 00:28:18 +00:00
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:
2018-11-04 07:45:02 +00:00
rm -f $(OBJ) $(SOBJ) qwktoss qwkscan