Update mgpost and add to new build system

This commit is contained in:
Andrew Pamment
2017-03-19 15:02:09 +10:00
parent a37f867948
commit ac729c1f69
10 changed files with 64 additions and 70 deletions

View File

@@ -1,13 +1,19 @@
CC=cc
CFLAGS=-I/usr/local/include
DEPS = mgpost.c
JAMLIB = ../../jamlib/jamlib.a
JAMLIB = ../../deps/jamlib/jamlib.a
OBJ = mgpost.o ../../inih/ini.o
all: mgpost
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
mgpost: $(OBJ)
$(CC) -o mgpost -o $@ $^ $(CFLAGS) -L/usr/local/lib $(JAMLIB)
$(JAMLIB):
cd ../../deps/jamlib && make -f Makefile.linux
mgpost: $(OBJ) $(JAMLIB)
$(CC) -o mgpost -o $@ $^ $(CFLAGS) -L/usr/local/lib
.PHONY: clean