Redo Make file setup.. please standby

This commit is contained in:
Andrew Pamment
2017-09-25 13:27:22 +10:00
parent 6661085272
commit ffaca86565
52 changed files with 664 additions and 634 deletions

View File

@@ -24,7 +24,7 @@ endif
DEPS = magiftpd.c
OBJ = magiftpd.o ../../inih/ini.o
OBJ = magiftpd.o ../../src/inih/ini.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)

View File

@@ -17,7 +17,7 @@
#include <time.h>
#include <sys/wait.h>
#include "magiftpd.h"
#include "../../inih/ini.h"
#include "../../src/inih/ini.h"
static struct ftpclient **clients;
static int client_count = 0;
@@ -997,4 +997,4 @@ int main(int argc, char **argv) {
ftpsrv.last_passive_port = ftpsrv.min_passive_port;
init(&ftpsrv);
}
}

View File

@@ -2,7 +2,7 @@ CC=cc
CFLAGS=-I/usr/local/include
DEPS = mgpost.c
JAMLIB = ../../deps/jamlib/jamlib.a
OBJ = mgpost.o ../../inih/ini.o
OBJ = mgpost.o ../../src/inih/ini.o
all: mgpost

View File

@@ -5,7 +5,7 @@
#include <unistd.h>
#include <sys/file.h>
#include "../../deps/jamlib/jam.h"
#include "../../inih/ini.h"
#include "../../src/inih/ini.h"
s_JamBase *open_jam_base(char *path) {
int ret;

View File

@@ -24,13 +24,13 @@ endif
DEPS = ticproc.c
OBJ = ticproc.o ../../inih/ini.o crc32.o
OBJ = ticproc.o ../../src/inih/ini.o crc32.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
ticproc: $(OBJ)
$(CC) -o ticproc -o $@ $^ $(CFLAGS) $(LDFLAGS) -lsqlite3
$(CC) -o ticproc $^ $(CFLAGS) $(LDFLAGS) -lsqlite3
.PHONY: clean

View File

@@ -6,7 +6,7 @@
#include <dirent.h>
#include <libgen.h>
#include <ctype.h>
#include "../../inih/ini.h"
#include "../../src/inih/ini.h"
#include "ticproc.h"
#include "crc32.h"