mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Make Makefile more standard and update copyright year
This commit is contained in:
parent
c32ce5761f
commit
ba6d8fd738
35 changed files with 46 additions and 49 deletions
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2014 - 2021, UnknownShadow200
|
||||
Copyright (c) 2014 - 2022, UnknownShadow200
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_AUDIO_H
|
||||
#include "Core.h"
|
||||
/* Manages playing sound and music.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct IGameComponent;
|
||||
extern struct IGameComponent Audio_Component;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_AXISLINESRENDERER_H
|
||||
#include "Core.h"
|
||||
/* Renders 3 lines showing direction of each axis.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
struct IGameComponent;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_BITMAP_H
|
||||
#include "Core.h"
|
||||
/* Represents a 2D array of pixels.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct Stream;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "BlockID.h"
|
||||
/* Stores properties and data for blocks.
|
||||
Also performs automatic rotation of directional blocks.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct IGameComponent;
|
||||
extern struct IGameComponent Blocks_Component;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_BLOCKID_H
|
||||
#include "Core.h" /* TODO: Remove this include when we move to external defines */
|
||||
/* List of all core/standard block IDs
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
enum BLOCKID {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_BLOCKPHYSICS_H
|
||||
#include "Core.h"
|
||||
/* Implements simple block physics.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
typedef void (*PhysicsHandler)(int index, BlockID block);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_CHAT_H
|
||||
#include "Core.h"
|
||||
/* Manages sending, adding, logging and handling chat.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct IGameComponent;
|
||||
struct StringsBuffer;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
https://www.ietf.org/rfc/rfc1951.txt
|
||||
https://github.com/nothings/stb/blob/master/stb_image.h
|
||||
https://www.hanshq.net/zip.html
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct Stream;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Bitmap.h"
|
||||
#include "Constants.h"
|
||||
/* Performs a variety of drawing operations on bitmaps, and converts bitmaps into textures.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
enum FONT_FLAGS { FONT_FLAGS_NONE = 0x00, FONT_FLAGS_BOLD = 0x01, FONT_FLAGS_UNDERLINE = 0x02, FONT_FLAGS_PADDING = 0x04 };
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "PackedCol.h"
|
||||
#include "String.h"
|
||||
/* Represents an in-game entity.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct Model;
|
||||
struct IGameComponent;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Vectors.h"
|
||||
#include "Constants.h"
|
||||
/* Various components for entities.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
struct Entity;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_EVENT_H
|
||||
#include "Vectors.h"
|
||||
/* Helper methods for using events, and contains all events.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
/* Max callbacks that can be registered for an event. */
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Core.h"
|
||||
/* Simple math functions and constants. Also implements a RNG algorithm, based on
|
||||
Java's implementation from https://docs.oracle.com/javase/7/docs/api/java/util/Random.html
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
#define MATH_PI 3.1415926535897931f
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_MAPFORMATS_H
|
||||
#include "Core.h"
|
||||
/* Imports/exports a world and associated metadata from/to a particular map file format.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
struct Stream;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_GAME_H
|
||||
#include "Core.h"
|
||||
/* Represents the game and related structures.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
struct Bitmap;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
/* Implements flatgrass map generator, and original classic vanilla map generation (with perlin noise)
|
||||
Based on: https://github.com/UnknownShadow200/ClassiCube/wiki/Minecraft-Classic-map-generation-algorithm
|
||||
Thanks to Jerralish for originally reverse engineering classic's algorithm, then preparing a high level overview of the algorithm.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
/* Progress between 0 and 1 for the current step */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "PackedCol.h"
|
||||
/*
|
||||
Abstracts a 3D graphics rendering API
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct Bitmap;
|
||||
struct Stream;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_GUI_H
|
||||
#include "Core.h"
|
||||
/* Describes and manages 2D GUI elements on screen.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
enum GuiAnchor {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "BlockID.h"
|
||||
|
||||
/* Manages inventory hotbar, and ordering of blocks in the inventory menu.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct IGameComponent;
|
||||
extern struct IGameComponent Inventory_Component;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_ISOMETRICDRAWER_H
|
||||
#include "Core.h"
|
||||
/* Draws 2D isometric blocks for the hotbar and inventory UIs.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct VertexTextured;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Bitmap.h"
|
||||
#include "Constants.h"
|
||||
/* Implements asynchronous web tasks for the launcher.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
struct JsonContext;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Bitmap.h"
|
||||
#include "Constants.h"
|
||||
/* Describes and manages individual 2D GUI elements in the launcher.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct FontDesc;
|
||||
struct Context2D;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_LAUNCHER_H
|
||||
#include "Bitmap.h"
|
||||
/* Implements the launcher part of the game.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct LScreen;
|
||||
struct FontDesc;
|
||||
|
|
27
src/Makefile
27
src/Makefile
|
@ -3,8 +3,6 @@ C_OBJECTS:=$(patsubst %.c, %.o, $(C_SOURCES))
|
|||
OBJECTS:=$(C_OBJECTS)
|
||||
ENAME=ClassiCube
|
||||
DEL=rm
|
||||
JOBS=1
|
||||
CC=cc
|
||||
CFLAGS=-g -pipe -fno-math-errno
|
||||
LDFLAGS=-g -rdynamic
|
||||
|
||||
|
@ -44,7 +42,6 @@ LIBS=-lX11 -lXi -lpthread -lGL -lm -ldl
|
|||
endif
|
||||
|
||||
ifeq ($(PLAT),sunos)
|
||||
CC=gcc
|
||||
CFLAGS=-g -pipe -fno-math-errno
|
||||
LIBS=-lm -lsocket -lX11 -lXi -lGL
|
||||
endif
|
||||
|
@ -103,29 +100,29 @@ endif
|
|||
default: $(PLAT)
|
||||
|
||||
web:
|
||||
$(MAKE) $(ENAME) PLAT=web -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=web
|
||||
linux:
|
||||
$(MAKE) $(ENAME) PLAT=linux -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=linux
|
||||
mingw:
|
||||
$(MAKE) $(ENAME) PLAT=mingw -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=mingw
|
||||
sunos:
|
||||
$(MAKE) $(ENAME) PLAT=sunos -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=sunos
|
||||
mac_x32:
|
||||
$(MAKE) $(ENAME) PLAT=mac_x32 -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=mac_x32
|
||||
mac_x64:
|
||||
$(MAKE) $(ENAME) PLAT=mac_x64 -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=mac_x64
|
||||
freebsd:
|
||||
$(MAKE) $(ENAME) PLAT=freebsd -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=freebsd
|
||||
openbsd:
|
||||
$(MAKE) $(ENAME) PLAT=openbsd -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=openbsd
|
||||
netbsd:
|
||||
$(MAKE) $(ENAME) PLAT=netbsd -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=netbsd
|
||||
dragonfly:
|
||||
$(MAKE) $(ENAME) PLAT=dragonfly -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=dragonfly
|
||||
haiku:
|
||||
$(MAKE) $(ENAME) PLAT=haiku -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=haiku
|
||||
serenityos:
|
||||
$(MAKE) $(ENAME) PLAT=serenityos -j$(JOBS)
|
||||
$(MAKE) $(ENAME) PLAT=serenityos
|
||||
|
||||
clean:
|
||||
$(DEL) $(OBJECTS)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
/* Renders the blocks of the world by subdividing it into chunks.
|
||||
Also manages the process of building/deleting chunk meshes.
|
||||
Also sorts chunks so nearest chunks are rendered first, and calculates chunk visibility.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct IGameComponent;
|
||||
extern struct IGameComponent MapRenderer_Component;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Core.h"
|
||||
|
||||
/* Contains all 2D menu screen implementations.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct Screen;
|
||||
int Menu_PointerDown(void* screen, int id, int x, int y);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "Physics.h"
|
||||
/* Contains various structs and methods for an entity model.
|
||||
Also contains a list of models and default textures for those models.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct Entity;
|
||||
struct AABB;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_PACKEDCOL_H
|
||||
#include "Core.h"
|
||||
/* Manipulates a packed 32 bit RGBA colour, in a format suitable for the native 3D graphics API.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
typedef cc_uint32 PackedCol;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_PICKEDPOSRENDERER_H
|
||||
#include "Core.h"
|
||||
/* Renders an outline around the block the player is looking at.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct RayTracer;
|
||||
struct IGameComponent;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_RESOURCES_H
|
||||
#include "Core.h"
|
||||
/* Implements checking, fetching, and patching the default game assets.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
/* Number of resources that need to be downloaded. */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define CC_SCREENS_H
|
||||
#include "Core.h"
|
||||
/* Contains all 2D non-menu screen implementations.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct Screen;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Vectors.h"
|
||||
#include "PackedCol.h"
|
||||
/* Describes a selection box, and contains methods related to the selection box.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct IGameComponent;
|
||||
extern struct IGameComponent Selections_Component;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "Platform.h"
|
||||
/* Defines an abstract way of reading and writing data in a streaming manner.
|
||||
Also provides common helper methods for reading/writing data to/from streams.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
|
||||
struct Stream;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "Entity.h"
|
||||
#include "Inventory.h"
|
||||
/* Contains all 2D widget implementations.
|
||||
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||
Copyright 2014-2022 ClassiCube | Licensed under BSD-3
|
||||
*/
|
||||
struct FontDesc;
|
||||
|
||||
|
|
Loading…
Reference in a new issue