Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
969 | dimkam | 1 | # makfile configuration |
2 | NAME = mhmt |
||
3 | OBJECTS = mhmt-emit.o mhmt-globals.o mhmt-hash.o mhmt-lz.o mhmt-main.o mhmt-optimal.o mhmt-pack.o mhmt-parsearg.o mhmt-tb.o mhmt-depack.o |
||
4 | |||
5 | #CFLAGS = -m32 -march=i386 -std=c99 -O2 -flto -fomit-frame-pointer -Wunused-variable -Wextra -Werror -pedantic-errors -g -D_POSIX_C_SOURCE=1 -U__STRICT_ANSI__ |
||
6 | CFLAGS = -std=c99 -O2 -flto -fomit-frame-pointer -Wunused-variable -Wextra -Werror -pedantic-errors -g -D_POSIX_C_SOURCE=1 -U__STRICT_ANSI__ -Wno-shift-negative-value |
||
7 | |||
8 | #switch the compiler (for the internal make rules) |
||
9 | CC = gcc |
||
10 | DA = objdump -dS |
||
11 | |||
12 | #all should be the first target. it's built when make is runwithout args |
||
13 | all: ${NAME} strip |
||
14 | |||
15 | strip: ${NAME} |
||
16 | strip ${NAME} |
||
17 | |||
18 | #additional rules for files |
||
19 | ${NAME}: ${OBJECTS} |
||
20 | ${CC} ${CFLAGS} -o $@ ${OBJECTS} |
||
21 | |||
22 | clean: |
||
23 | rm -f ${NAME} ${OBJECTS} ${SRCS} |
||
24 | # rm -f ${NAME} ${OBJECTS} |
||
25 | |||
26 | #project dependencies |
||
27 | mhmt-emit.o: ../src/mhmt-emit.c ../src/mhmt-types.h ../src/mhmt-globals.h ../src/mhmt-lz.h ../src/mhmt-optimal.h ../src/mhmt-emit.h Makefile |
||
28 | ${CC} ${CFLAGS} -c $< |
||
29 | |||
30 | mhmt-globals.o: ../src/mhmt-globals.c ../src/mhmt-types.h ../src/mhmt-globals.h Makefile |
||
31 | ${CC} ${CFLAGS} -c $< |
||
32 | |||
33 | mhmt-hash.o: ../src/mhmt-hash.c ../src/mhmt-types.h ../src/mhmt-hash.h Makefile |
||
34 | ${CC} ${CFLAGS} -c $< |
||
35 | |||
36 | mhmt-lz.o: ../src/mhmt-lz.c ../src/mhmt-types.h ../src/mhmt-tb.h ../src/mhmt-lz.h Makefile |
||
37 | ${CC} ${CFLAGS} -c $< |
||
38 | |||
39 | mhmt-main.o: ../src/mhmt-main.c ../src/mhmt-types.h ../src/mhmt-globals.h ../src/mhmt-parsearg.h Makefile |
||
40 | ${CC} ${CFLAGS} -c $< |
||
41 | |||
42 | mhmt-optimal.o: ../src/mhmt-optimal.c ../src/mhmt-types.h ../src/mhmt-optimal.h Makefile |
||
43 | ${CC} ${CFLAGS} -c $< |
||
44 | |||
45 | mhmt-pack.o: ../src/mhmt-pack.c ../src/mhmt-types.h ../src/mhmt-globals.h ../src/mhmt-pack.h ../src/mhmt-hash.h ../src/mhmt-tb.h ../src/mhmt-lz.h ../src/mhmt-optimal.h ../src/mhmt-emit.h Makefile |
||
46 | ${CC} ${CFLAGS} -c $< |
||
47 | |||
48 | mhmt-parsearg.o: ../src/mhmt-parsearg.c ../src/mhmt-types.h ../src/mhmt-globals.h ../src/mhmt-parsearg.h Makefile |
||
49 | ${CC} ${CFLAGS} -c $< |
||
50 | |||
51 | mhmt-tb.o: ../src/mhmt-tb.c ../src/mhmt-types.h ../src/mhmt-globals.h ../src/mhmt-tb.h Makefile |
||
52 | ${CC} ${CFLAGS} -c $< |
||
53 | |||
54 | mhmt-depack.o: ../src/mhmt-depack.c ../src/mhmt-types.h ../src/mhmt-globals.h ../src/mhmt-depack.h ../src/mhmt-depack-megalz.c ../src/mhmt-depack-hrum.c ../src/mhmt-depack-hrust.c ../src/mhmt-depack-zx7.c Makefile |
||
55 | ${CC} ${CFLAGS} -c $< |
||
56 |