orangeduck / Corange

Pure C Game Engine
http://www.youtube.com/watch?v=482GxqTWXtA
Other
1.82k stars 199 forks source link

Installation targets not installing header files #27

Open ghost opened 6 years ago

ghost commented 6 years ago

Makefile targets install_unix, install_win32 and install_win64 don't install header files.

blogdron commented 6 years ago

becouse not need ?::)

git clone https://github.com/orangeduck/Corange.git
cd Corange && make && make install_unix && cd;
mkdir myawesomegame
cp -r Corange/include/ ./myawesomegame/
cp -r Corange/assets_core/ ./myawesomegame/
touch Makefile

makefile

all:
    gcc -lcorange -I./include awesomegame.c -o awesomegame
         #or just copy libcorange.a in myawesomegame and add 
         #-L. -lcoragne for static compile, it good becouse not need install library in system
         # if you need install in system use pakage system .deb .rpm for linux

run

make && ./awesomegame

if you need install hrader files just add cp in this https://github.com/orangeduck/Corange/blob/master/Makefile#L60 for linux example

install_unix: $(STATIC)
cp $(STATIC) /usr/local/lib/$(STATIC)
mkdir -p /usr/local/include/corange
cp -r ./include/ /usr/local/inlude/corange

and use #include <corange/corange.h> not '#include "corange.h"'