Update mgpost and add to new build system
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user