mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
a1c106ce1c
asteroids(1) now uses chvideomode(1) if no driver is active. Made the asteroids game object oriented. Added asteroids to ateroids(1). uptime(2) in asteroids.
31 lines
536 B
Makefile
31 lines
536 B
Makefile
# Set up variables such that we can easily cross-compile.
|
|
OSROOT=..
|
|
include ../crosscompilemakefile.mak
|
|
|
|
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
|
|
|
|
INITRDDIR:=../initrd
|
|
LOCALBINARIES:=\
|
|
pong \
|
|
conway \
|
|
snake \
|
|
asteroids \
|
|
|
|
BINARIES:=$(addprefix $(INITRDDIR)/,$(LOCALBINARIES))
|
|
|
|
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 $< $@
|
|
|
|
clean:
|
|
rm -f $(BINARIES) $(LOCALBINARIES) *.o
|
|
|