1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/games/Makefile

31 lines
524 B
Makefile
Raw Normal View History

2011-08-11 22:51:04 +02:00
# Set up variables such that we can easily cross-compile.
OSROOT=..
include ../crosscompilemakefile.mak
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
INITRDDIR:=../initrd
LOCALBINARIES:=\
pong \
2011-08-29 00:09:37 +02:00
conway \
2011-09-07 12:20:28 +02:00
snake \
2011-08-11 22:51:04 +02:00
BINARIES:=$(addprefix $(INITRDDIR)/,$(LOCALBINARIES))
2011-08-11 22:51:04 +02:00
all: install
install: $(LOCALBINARIES)
cp $(LOCALBINARIES) $(INITRDDIR)
rm -f $(LOCALBINARIES)
%: %.cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -O2 -c $< -o $@.o
$(LD) $(LDFLAGS) $@.o -o $@ $(LIBS)
sh: mxsh
cp $< $@
2011-08-11 22:51:04 +02:00
clean:
rm -f $(BINARIES) $(LOCALBINARIES) *.o
2011-08-11 22:51:04 +02:00