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

36 lines
692 B
Makefile
Raw Normal View History

SOFTWARE_MEANT_FOR_SORTIX=1
2014-06-28 10:10:20 -04:00
include ../build-aux/platform.mak
include ../build-aux/compiler.mak
include ../build-aux/version.mak
include ../build-aux/dirs.mak
2011-08-11 16:51:04 -04:00
OPTLEVEL?=$(DEFAULT_OPTLEVEL)
2016-02-28 16:11:39 -05:00
CFLAGS?=$(OPTLEVEL)
CXXFLAGS?=$(OPTLEVEL)
2012-09-10 17:36:15 -04:00
2016-02-28 16:11:39 -05:00
CFLAGS:=$(CFLAGS) -Wall -Wextra
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra -fno-exceptions -fno-rtti -fcheck-new
2012-09-10 17:36:15 -04:00
BINARIES:=\
asteroids \
2014-09-28 14:26:22 -04:00
aquatinspitz \
2011-08-11 16:51:04 -04:00
2012-12-15 16:15:30 -05:00
LIBS:=-ldispd
2012-09-10 17:36:15 -04:00
all: $(BINARIES)
.PHONY: all install clean
2011-08-11 16:51:04 -04:00
2012-09-10 17:36:15 -04:00
install: all
mkdir -p $(DESTDIR)$(BINDIR)
install $(BINARIES) $(DESTDIR)$(BINDIR)
2016-02-28 16:11:39 -05:00
%: %.c
$(CC) -std=gnu11 $(CFLAGS) $(CPPFLAGS) $< -o $@ $(LIBS)
%: %.cpp
2016-02-28 16:11:39 -05:00
$(CXX) -std=gnu++11 $(CXXFLAGS) $(CPPFLAGS) $< -o $@ $(LIBS)
2011-08-11 16:51:04 -04:00
clean:
2012-09-10 17:36:15 -04:00
rm -f $(BINARIES) *.o