Commit 12615d9 1 parent 91a6bbd commit 12615d9 Copy full SHA for 12615d9
File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,7 @@ ctr: $(OBJS)
20
20
$(CC) $(CFLAGS) -I i18n/${ISO} -c $<
21
21
22
22
clean:
23
- rm -rf ${OBJS} ctr
23
+ rm -rf ${OBJS} ctr
24
+
25
+ plugin:
26
+ cd plugins/${PACKAGE} ; make -f makefile.haiku clean ; make -f makefile.haiku install-${NAME}
Original file line number Diff line number Diff line change
1
+ # Usage example:
2
+ # ISO="nl" PACKAGE="media" NAME="libctrmedia.so" make plugin
3
+
4
+ LDFLAGS= -shared
5
+
6
+ install-libctrmedia.so: libctrmedia.so
7
+ install libctrmedia.so ../../mods/media/
8
+
9
+ libctrmedia.so: media.o
10
+ cc ${LDFLAGS} -lnetwork -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -o libctrmedia.so media.o
11
+
12
+ media.o:
13
+ cc -I . -c media.c -I /usr/include/SDL -I ../../i18n/${ISO} -I i18n/${ISO} -Wall -Werror -fPIC -o media.o
14
+
15
+ clean:
16
+ rm -rf libctrmedia.so
17
+ rm -rf *.o
You can’t perform that action at this time.
0 commit comments