Mercurial > molko
comparison Makefile @ 54:779352498a8a
make: beautify
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 18 Jan 2020 15:27:40 +0100 |
parents | 2e3a1945728e |
children | 52792b863ff7 |
comparison
equal
deleted
inserted
replaced
53:2e3a1945728e | 54:779352498a8a |
---|---|
65 | 65 |
66 TOOLS= tools/molko-map.c | 66 TOOLS= tools/molko-map.c |
67 TOOLS_OBJS= ${TOOLS:.c=} | 67 TOOLS_OBJS= ${TOOLS:.c=} |
68 TOOLS_DEPS= ${TOOLS:.c=.d} | 68 TOOLS_DEPS= ${TOOLS:.c=.d} |
69 | 69 |
70 DEFINES= -DPREFIX=\""${PREFIX}"\" \ | |
71 -DBINDIR=\""${BINDIR}"\" \ | |
72 -DSHAREDIR=\""${SHAREDIR}"\" | |
73 | |
70 .SUFFIXES: | 74 .SUFFIXES: |
71 .SUFFIXES: .c .o | 75 .SUFFIXES: .c .o |
72 | 76 |
73 all: ${PROG} | 77 all: ${PROG} |
74 | 78 |
75 -include ${DEPS} ${TESTS_DEPS} ${TOOLS_DEPS} | 79 -include ${DEPS} ${TESTS_DEPS} ${TOOLS_DEPS} |
76 | 80 |
77 .c.o: | 81 .c.o: |
78 ${CC} -DPREFIX=\""${PREFIX}"\" -DBINDIR=\""${BINDIR}"\" -DSHAREDIR=\""${SHAREDIR}"\" ${SDL_CFLAGS} ${CFLAGS} -c $< -o $@ | 82 ${CC} ${DEFINES} ${SDL_CFLAGS} ${CFLAGS} -c $< -o $@ |
79 | 83 |
80 .c: | 84 .c: |
81 ${CC} ${TESTS_INCS} -o $@ ${CFLAGS} $< ${TESTS_LIBS} | 85 ${CC} ${TESTS_INCS} -o $@ ${CFLAGS} $< ${TESTS_LIBS} |
82 | 86 |
83 ${LIB}: ${OBJS} | 87 ${LIB}: ${OBJS} |