Skip to content

Commit

Permalink
Add Haiku makefiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Jan 6, 2024
1 parent 91a6bbd commit 12615d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion makefile.haiku
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ ctr: $(OBJS)
$(CC) $(CFLAGS) -I i18n/${ISO} -c $<

clean:
rm -rf ${OBJS} ctr
rm -rf ${OBJS} ctr

plugin:
cd plugins/${PACKAGE} ; make -f makefile.haiku clean ; make -f makefile.haiku install-${NAME}
17 changes: 17 additions & 0 deletions plugins/media/makefile.haiku
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Usage example:
# ISO="nl" PACKAGE="media" NAME="libctrmedia.so" make plugin

LDFLAGS= -shared

install-libctrmedia.so: libctrmedia.so
install libctrmedia.so ../../mods/media/

libctrmedia.so: media.o
cc ${LDFLAGS} -lnetwork -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -o libctrmedia.so media.o

media.o:
cc -I . -c media.c -I /usr/include/SDL -I ../../i18n/${ISO} -I i18n/${ISO} -Wall -Werror -fPIC -o media.o

clean:
rm -rf libctrmedia.so
rm -rf *.o

0 comments on commit 12615d9

Please sign in to comment.