Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
Work-In-Progress...
Browse files Browse the repository at this point in the history
very WIP, so memory leak, much broken
  • Loading branch information
torralbaa committed Jul 5, 2021
1 parent a870c70 commit b8a2062
Show file tree
Hide file tree
Showing 15 changed files with 845 additions and 1,148 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ ARM_STRIP:=arm-linux-gnueabihf-strip
ARCH:=$(shell $(CC) -print-multiarch | grep -Eo "arm|aarch|86|x86_64")
endif

VERSION:=0.11.2
VERSION:=0.12.0

OBJS:=$(patsubst %,build/%.o,mcpil config helpers callbacks tabs)
OBJS:=$(patsubst %,build/%.o,mcpil config features play servers)

CFLAGS:=-DGMCPIL_VERSION=\"v$(VERSION)\" -I./src/include -Wall -Wno-address-of-packed-member -Wno-pointer-to-int-cast -Wno-unused-result
CFLAGS+=`pkg-config --cflags gtk+-3.0 json-glib-1.0`
LDFLAGS+=-Wl,--no-undefined `pkg-config --libs gtk+-3.0 json-glib-1.0`
CFLAGS+=$(shell pkg-config --cflags gtk+-3.0 json-glib-1.0)
LDFLAGS+=-Wl,--no-undefined $(shell pkg-config --libs gtk+-3.0 json-glib-1.0)

ifdef DEBUG
CFLAGS+=-g -Wextra -Werror
Expand All @@ -63,7 +63,7 @@ ifndef DEBUG
endif

./build/%.o: ./src/%.c ./src/include/*.h
$(CC) -fPIC -c $< -o $@ $(CFLAGS)
$(CC) -fPIC -fpie -c $< -o $@ $(CFLAGS)

mkdir:
mkdir -p ./build/
Expand All @@ -88,7 +88,7 @@ else
@echo "Architecture: armhf" >> ./deb/DEBIAN/control
endif
@echo "Section: contrib/misc" >> ./deb/DEBIAN/control
@echo "Depends: libc6 (>= 2.28), minecraft-pi-reborn-client (>= 2.0), libgtk-3-0, libjson-glib-1.0-0" >> ./deb/DEBIAN/control
@echo "Depends: libc6 (>= 2.28), minecraft-pi-reborn-client (>= 2.1.0), libgtk-3-0, libjson-glib-1.0-0" >> ./deb/DEBIAN/control
@echo "Maintainer: Alvarito050506 <[email protected]>" >> ./deb/DEBIAN/control
@echo "Homepage: https://mcpirevival.tk" >> ./deb/DEBIAN/control
@echo "Vcs-Browser: https://github.com/MCPI-Revival/gMCPIL" >> ./deb/DEBIAN/control
Expand All @@ -101,4 +101,4 @@ endif
clean:
rm -rf ./deb/
rm -rf ./build/
rm -f ./gmcpil_*-*.deb
rm -f ./gmcpil_*.deb
217 changes: 0 additions & 217 deletions src/callbacks.c

This file was deleted.

Loading

0 comments on commit b8a2062

Please sign in to comment.