Updated makefiles
This commit is contained in:
Submodule Airport/Box updated: ed96607632...9f2d4bf8ae
@@ -8,12 +8,12 @@ ODIR = obj
|
|||||||
SRC = $(wildcard *.c)
|
SRC = $(wildcard *.c)
|
||||||
OBJ = $(addprefix $(ODIR)/,$(SRC:.c=.o))
|
OBJ = $(addprefix $(ODIR)/,$(SRC:.c=.o))
|
||||||
|
|
||||||
OUT=../$(OUTDIR)/airport
|
OUT=../../$(OUTDIR)/airport
|
||||||
|
|
||||||
all: game
|
all: game
|
||||||
|
|
||||||
game: $(OBJ)
|
game: $(OBJ)
|
||||||
$(CC) $(CFLAGS) -o $(OUT) $(OBJ) -Wl,-rpath,. -L../$(OUTDIR) $(LIBS)
|
$(CC) $(CFLAGS) -o $(OUT) $(OBJ) -Wl,-rpath,. -L../../$(OUTDIR) $(LIBS)
|
||||||
|
|
||||||
game-release: game
|
game-release: game
|
||||||
strip $(OUT)
|
strip $(OUT)
|
||||||
|
|||||||
16
makefile
16
makefile
@@ -1,30 +1,30 @@
|
|||||||
export CFLAGS+=-std=c18 -pedantic -Werror
|
export CFLAGS+=-std=c18 -pedantic -Werror
|
||||||
|
|
||||||
export OUTDIR = out
|
export OUTDIR = out
|
||||||
export BOX_OUTDIR = ../$(OUTDIR)
|
export BOX_OUTDIR = ../../$(OUTDIR)
|
||||||
export TOY_OUTDIR = ../../$(OUTDIR)
|
export TOY_OUTDIR = ../../../$(OUTDIR)
|
||||||
|
|
||||||
all: toy box game
|
all: toy box game
|
||||||
|
|
||||||
toy: $(OUTDIR)
|
toy: $(OUTDIR)
|
||||||
$(MAKE) -j8 -C Box/Toy/source
|
$(MAKE) -j8 -C Airport/Box/Toy/source
|
||||||
|
|
||||||
box: $(OUTDIR)
|
box: $(OUTDIR)
|
||||||
$(MAKE) -j8 -C Box/source
|
$(MAKE) -j8 -C Airport/Box/source
|
||||||
|
|
||||||
game: $(OUTDIR)
|
game: $(OUTDIR)
|
||||||
$(MAKE) -j8 -C source
|
$(MAKE) -j8 -C Airport/source
|
||||||
ln -f -s ../assets -t $(OUTDIR)
|
ln -f -s ../assets -t $(OUTDIR)
|
||||||
|
|
||||||
#release
|
#release
|
||||||
toy-release: $(OUTDIR)
|
toy-release: $(OUTDIR)
|
||||||
$(MAKE) -j8 -C Box/Toy/source library-release
|
$(MAKE) -j8 -C Airport/Box/Toy/source library-release
|
||||||
|
|
||||||
box-release: $(OUTDIR)
|
box-release: $(OUTDIR)
|
||||||
$(MAKE) -j8 -C Box/source library-release
|
$(MAKE) -j8 -C Airport/Box/source library-release
|
||||||
|
|
||||||
game-release: $(OUTDIR)
|
game-release: $(OUTDIR)
|
||||||
$(MAKE) -j8 -C source game-release
|
$(MAKE) -j8 -C Airport/source game-release
|
||||||
cp -r assets $(OUTDIR)
|
cp -r assets $(OUTDIR)
|
||||||
|
|
||||||
#distribution
|
#distribution
|
||||||
|
|||||||
Reference in New Issue
Block a user