blob: 0eb34a005299a72cb426b4c7ffbc9d282660fc65 [file] [log] [blame] [raw]
# -----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <webmaster@flippeh.de> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return. Lukas Niederbremer.
# -----------------------------------------------------------------------------
CFLAGS=-g -Wall -std=c99 -pedantic
all: nbtreader datlevel blockreplacer
nbtreader: main.o libnbt.a
gcc main.o -L. -lnbt -lz -o nbtreader -g
datlevel: datlevel.c libnbt.a
gcc datlevel.c -L. -lnbt -lz -lm -o datlevel -g -Wall
blockreplacer: blockreplace.c libnbt.a
gcc blockreplace.c -L. -lnbt -lz -o blockreplace -g -Wall
main.o: main.c
libnbt.a: nbt.o
ar -rcs libnbt.a nbt.o
nbt.o: nbt.h nbt.c