Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Haiku-specific makefile and error messages
- Loading branch information
1 parent
5753b24
commit f11f015
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# OpenJazz makefile for Haiku | ||
include openjazz.mk | ||
|
||
CXX ?= g++ | ||
CXXFLAGS ?= -g -Wall -O2 | ||
|
||
CXXFLAGS += -D_BSD_SOURCE -DUSE_SOCKETS -DSCALE | ||
LIBS += -lbe -lnetwork | ||
|
||
# SDL | ||
CXXFLAGS += $(shell sdl-config --cflags) | ||
LIBS += $(shell sdl-config --libs) | ||
|
||
# modplug | ||
CXXFLAGS += -DUSE_MODPLUG $(shell pkg-config --cflags libmodplug) | ||
LIBS += $(shell pkg-config --libs libmodplug) | ||
|
||
LIBS += -lm | ||
|
||
OpenJazz: $(OBJS) | ||
$(CXX) $(LDFLAGS) -lz $(LIBS) $(OBJS) -o OpenJazz | ||
|
||
%.o: %.cpp | ||
$(CXX) $(CXXFLAGS) -Isrc -c $< -o $@ | ||
|
||
clean: | ||
rm -f OpenJazz $(OBJS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters