Update ticproc to new build system
This commit is contained in:
parent
cb09b8a593
commit
7f5e567a2b
@ -6,7 +6,7 @@ ZMODEM = deps/Xmodem/libzmodem.a
|
|||||||
LUA = deps/lua/liblua.a
|
LUA = deps/lua/liblua.a
|
||||||
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
||||||
|
|
||||||
all: magicka magimail magiedit
|
all: magicka magimail magiedit ticproc
|
||||||
|
|
||||||
${LUA}:
|
${LUA}:
|
||||||
cd deps/lua && $(MAKE) -f Makefile freebsd MAKEFLAGS=
|
cd deps/lua && $(MAKE) -f Makefile freebsd MAKEFLAGS=
|
||||||
@ -33,6 +33,9 @@ magimail: $(JAMLIB)
|
|||||||
magiedit: $(ODOORS)
|
magiedit: $(ODOORS)
|
||||||
cd utils/magiedit && $(MAKE)
|
cd utils/magiedit && $(MAKE)
|
||||||
|
|
||||||
|
ticproc:
|
||||||
|
cd utils/ticproc && $(MAKE)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -43,3 +46,4 @@ clean:
|
|||||||
cd utils/magimail && $(MAKE) cleanfreebsd
|
cd utils/magimail && $(MAKE) cleanfreebsd
|
||||||
cd utils/magiedit && $(MAKE) clean
|
cd utils/magiedit && $(MAKE) clean
|
||||||
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
||||||
|
cd utils/ticproc && $(MAKE) clean
|
@ -8,7 +8,7 @@ B64 = deps/libb64-1.2/src/libb64.a
|
|||||||
MICROHTTPD=-lmicrohttpd
|
MICROHTTPD=-lmicrohttpd
|
||||||
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
||||||
|
|
||||||
all: magicka magimail magiedit
|
all: magicka magimail magiedit ticproc
|
||||||
|
|
||||||
${LUA}:
|
${LUA}:
|
||||||
cd deps/lua && $(MAKE) -f Makefile freebsd MAKEFLAGS=
|
cd deps/lua && $(MAKE) -f Makefile freebsd MAKEFLAGS=
|
||||||
@ -38,6 +38,9 @@ magimail: $(JAMLIB)
|
|||||||
magiedit: $(ODOORS)
|
magiedit: $(ODOORS)
|
||||||
cd utils/magiedit && $(MAKE)
|
cd utils/magiedit && $(MAKE)
|
||||||
|
|
||||||
|
ticproc:
|
||||||
|
cd utils/ticproc && $(MAKE)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -49,3 +52,4 @@ clean:
|
|||||||
cd utils/magimail && $(MAKE) cleanfreebsd
|
cd utils/magimail && $(MAKE) cleanfreebsd
|
||||||
cd utils/magiedit && $(MAKE) clean
|
cd utils/magiedit && $(MAKE) clean
|
||||||
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
||||||
|
cd utils/ticproc && $(MAKE) clean
|
@ -6,7 +6,7 @@ ZMODEM = deps/Xmodem/libzmodem.a
|
|||||||
LUA = deps/lua/liblua.a
|
LUA = deps/lua/liblua.a
|
||||||
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
||||||
|
|
||||||
all: magicka magimail magiedit
|
all: magicka magimail magiedit ticproc
|
||||||
|
|
||||||
${LUA}:
|
${LUA}:
|
||||||
cd deps/lua && $(MAKE) -f Makefile linux MAKEFLAGS=
|
cd deps/lua && $(MAKE) -f Makefile linux MAKEFLAGS=
|
||||||
@ -33,6 +33,9 @@ magimail: $(JAMLIB)
|
|||||||
magiedit: $(ODOORS)
|
magiedit: $(ODOORS)
|
||||||
cd utils/magiedit && $(MAKE)
|
cd utils/magiedit && $(MAKE)
|
||||||
|
|
||||||
|
ticproc:
|
||||||
|
cd utils/ticproc && $(MAKE)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -43,3 +46,4 @@ clean:
|
|||||||
cd utils/magimail && $(MAKE) cleanlinux
|
cd utils/magimail && $(MAKE) cleanlinux
|
||||||
cd utils/magiedit && $(MAKE) clean
|
cd utils/magiedit && $(MAKE) clean
|
||||||
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
||||||
|
cd utils/ticproc && $(MAKE) clean
|
@ -8,7 +8,7 @@ B64 = deps/libb64-1.2/src/libb64.a
|
|||||||
MICROHTTPD=-lmicrohttpd
|
MICROHTTPD=-lmicrohttpd
|
||||||
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
||||||
|
|
||||||
all: magicka magimail magiedit
|
all: magicka magimail magiedit ticproc
|
||||||
|
|
||||||
${LUA}:
|
${LUA}:
|
||||||
cd deps/lua && $(MAKE) -f Makefile linux MAKEFLAGS=
|
cd deps/lua && $(MAKE) -f Makefile linux MAKEFLAGS=
|
||||||
@ -38,6 +38,9 @@ magimail: $(JAMLIB)
|
|||||||
magiedit: $(ODOORS)
|
magiedit: $(ODOORS)
|
||||||
cd utils/magiedit && $(MAKE)
|
cd utils/magiedit && $(MAKE)
|
||||||
|
|
||||||
|
ticproc:
|
||||||
|
cd utils/ticproc && $(MAKE)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -49,3 +52,4 @@ clean:
|
|||||||
cd utils/magimail && $(MAKE) cleanlinux
|
cd utils/magimail && $(MAKE) cleanlinux
|
||||||
cd utils/magiedit && $(MAKE) clean
|
cd utils/magiedit && $(MAKE) clean
|
||||||
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
||||||
|
cd utils/ticproc && $(MAKE) clean
|
@ -6,7 +6,7 @@ ZMODEM = deps/Xmodem/libzmodem.a
|
|||||||
LUA = deps/lua/liblua.a
|
LUA = deps/lua/liblua.a
|
||||||
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
||||||
|
|
||||||
all: magicka magimail magiedit
|
all: magicka magimail magiedit ticproc
|
||||||
|
|
||||||
${LUA}:
|
${LUA}:
|
||||||
cd deps/lua && $(MAKE) -f Makefile bsd MAKEFLAGS=
|
cd deps/lua && $(MAKE) -f Makefile bsd MAKEFLAGS=
|
||||||
@ -33,6 +33,9 @@ magiedit: $(ODOORS)
|
|||||||
magimail: $(JAMLIB)
|
magimail: $(JAMLIB)
|
||||||
cd utils/magimail && $(MAKE) freebsd
|
cd utils/magimail && $(MAKE) freebsd
|
||||||
|
|
||||||
|
ticproc:
|
||||||
|
cd utils/ticproc && $(MAKE)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -43,4 +46,4 @@ clean:
|
|||||||
cd utils/magimail && $(MAKE) cleanfreebsd
|
cd utils/magimail && $(MAKE) cleanfreebsd
|
||||||
cd utils/magiedit && $(MAKE) clean
|
cd utils/magiedit && $(MAKE) clean
|
||||||
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
||||||
|
cd utils/ticproc && $(MAKE) clean
|
||||||
|
@ -8,7 +8,7 @@ B64 = deps/libb64-1.2/src/libb64.a
|
|||||||
MICROHTTPD=-lmicrohttpd
|
MICROHTTPD=-lmicrohttpd
|
||||||
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
||||||
|
|
||||||
all: magicka magimail magiedit
|
all: magicka magimail magiedit ticproc
|
||||||
|
|
||||||
${LUA}:
|
${LUA}:
|
||||||
cd deps/lua && $(MAKE) -f Makefile bsd MAKEFLAGS=
|
cd deps/lua && $(MAKE) -f Makefile bsd MAKEFLAGS=
|
||||||
@ -38,6 +38,9 @@ magiedit: $(ODOORS)
|
|||||||
magimail: $(JAMLIB)
|
magimail: $(JAMLIB)
|
||||||
cd utils/magimail && $(MAKE) freebsd
|
cd utils/magimail && $(MAKE) freebsd
|
||||||
|
|
||||||
|
ticproc:
|
||||||
|
cd utils/ticproc && $(MAKE)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -49,3 +52,4 @@ clean:
|
|||||||
cd utils/magimail && $(MAKE) cleanfreebsd
|
cd utils/magimail && $(MAKE) cleanfreebsd
|
||||||
cd utils/magiedit && $(MAKE) clean
|
cd utils/magiedit && $(MAKE) clean
|
||||||
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
||||||
|
cd utils/ticproc && $(MAKE) clean
|
@ -8,7 +8,7 @@ ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
|||||||
|
|
||||||
OBJ = inih/ini.o bbs.o main.o users.o main_menu.o mail_menu.o doors.o bbs_list.o chat_system.o email.o files.o settings.o lua_glue.o strings.o bluewave.o hashmap/hashmap.o
|
OBJ = inih/ini.o bbs.o main.o users.o main_menu.o mail_menu.o doors.o bbs_list.o chat_system.o email.o files.o settings.o lua_glue.o strings.o bluewave.o hashmap/hashmap.o
|
||||||
|
|
||||||
all: magicka magimail magiedit
|
all: magicka magimail magiedit ticproc
|
||||||
|
|
||||||
${LUA}:
|
${LUA}:
|
||||||
cd deps/lua && $(MAKE) -f Makefile macosx MAKEFLAGS=
|
cd deps/lua && $(MAKE) -f Makefile macosx MAKEFLAGS=
|
||||||
@ -34,6 +34,9 @@ magimail: $(JAMLIB)
|
|||||||
magiedit: $(ODOORS)
|
magiedit: $(ODOORS)
|
||||||
cd utils/magiedit && $(MAKE)
|
cd utils/magiedit && $(MAKE)
|
||||||
|
|
||||||
|
ticproc:
|
||||||
|
cd utils/ticproc && $(MAKE)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -44,3 +47,4 @@ clean:
|
|||||||
cd utils/magimail && $(MAKE) cleanlinux
|
cd utils/magimail && $(MAKE) cleanlinux
|
||||||
cd utils/magiedit && $(MAKE) clean
|
cd utils/magiedit && $(MAKE) clean
|
||||||
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
||||||
|
cd utils/ticproc && $(MAKE) clean
|
@ -8,7 +8,7 @@ B64 = deps/libb64-1.2/src/libb64.a
|
|||||||
MICROHTTPD=-lmicrohttpd
|
MICROHTTPD=-lmicrohttpd
|
||||||
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
||||||
|
|
||||||
all: magicka magimail magiedit
|
all: magicka magimail magiedit ticproc
|
||||||
|
|
||||||
${LUA}:
|
${LUA}:
|
||||||
cd deps/lua && $(MAKE) -f Makefile macosx MAKEFLAGS=
|
cd deps/lua && $(MAKE) -f Makefile macosx MAKEFLAGS=
|
||||||
@ -38,6 +38,9 @@ magimail: $(JAMLIB)
|
|||||||
magiedit: $(ODOORS)
|
magiedit: $(ODOORS)
|
||||||
cd utils/magiedit && $(MAKE)
|
cd utils/magiedit && $(MAKE)
|
||||||
|
|
||||||
|
ticproc:
|
||||||
|
cd utils/ticproc && $(MAKE)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -48,3 +51,4 @@ clean:
|
|||||||
cd utils/magimail && $(MAKE) cleanlinux
|
cd utils/magimail && $(MAKE) cleanlinux
|
||||||
cd utils/magiedit && $(MAKE) clean
|
cd utils/magiedit && $(MAKE) clean
|
||||||
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
cd deps/odoors/ && rm -rf libs-`uname -s` objs-`uname -s` exe-`uname -s`
|
||||||
|
cd utils/ticproc && $(MAKE) clean
|
@ -1,14 +1,29 @@
|
|||||||
CC=cc
|
OS := $(shell uname -s)
|
||||||
CFLAGS=-I/usr/local/include
|
|
||||||
|
ifeq ($(OS), FreeBSD)
|
||||||
|
CC=cc
|
||||||
|
CFLAGS=-I/usr/local/include
|
||||||
|
LDFLAGS=-L/usr/local/lib
|
||||||
|
else
|
||||||
|
ifeq ($(OS), NetBSD)
|
||||||
|
CC=cc
|
||||||
|
CFLAGS=-I/usr/pkg/include
|
||||||
|
LDFLAGS=-L/usr/pkg/lib
|
||||||
|
else
|
||||||
|
CC=gcc
|
||||||
|
CFLAGS=
|
||||||
|
LDFLAGS=
|
||||||
|
endif
|
||||||
|
|
||||||
DEPS = ticproc.c
|
DEPS = ticproc.c
|
||||||
|
|
||||||
OBJ = ticproc.o ../../inih/ini.o crc32.o
|
OBJ = ticproc.o ../../deps/inih/ini.o crc32.o
|
||||||
%.o: %.c $(DEPS)
|
%.o: %.c $(DEPS)
|
||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
ticproc: $(OBJ)
|
ticproc: $(OBJ)
|
||||||
$(CC) -o ticproc -o $@ $^ $(CFLAGS) -L/usr/local/lib -lsqlite3
|
$(CC) -o ticproc -o $@ $^ $(CFLAGS) $(LDFLAGS) -lsqlite3
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "../../inih/ini.h"
|
#include "../../deps/inih/ini.h"
|
||||||
#include "ticproc.h"
|
#include "ticproc.h"
|
||||||
#include "crc32.h"
|
#include "crc32.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user