4 |
# * |
# * |
5 |
# * Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org> |
# * Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org> |
6 |
# * |
# * |
|
# * Still incomplete but WIP |
|
|
# * |
|
7 |
# * libso: |
# * libso: |
8 |
# * (-lm not neccessary if using -ffast-math) |
# * (-lm not neccessary if using -ffast-math) |
9 |
# * |
# * |
29 |
|
|
30 |
all: $(LIB) $(LIBSO) |
all: $(LIB) $(LIBSO) |
31 |
|
|
|
|
|
32 |
$(LIB): $(SRC:.c=.o) $(SRC_PPC:.s=.o) |
$(LIB): $(SRC:.c=.o) $(SRC_PPC:.s=.o) |
33 |
ar rcs $@ $^ |
ar rcs $@ $^ |
34 |
|
|
36 |
$(LIBSO): $(SRC:.c=.o) $(SRC_PPC:.s=.o) |
$(LIBSO): $(SRC:.c=.o) $(SRC_PPC:.s=.o) |
37 |
$(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ |
$(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ |
38 |
|
|
|
|
|
39 |
clean: |
clean: |
40 |
$(RM) `find $(SRCDIR) -name "*.o"` |
$(RM) `find $(SRCDIR) -name "*.o"` |
41 |
|
|