1 PROGS
= twintig zestig zeventig tachtig negentig
2 PROGS
+= tpl2ppm dol2elf tmd-dump zelda-cksum
3 COMMON
= tools.o bn.o ec.o
4 DEFINES
= -DLARGE_FILES
-D_FILE_OFFSET_BITS
=64
12 OBJS
= $(patsubst %,%.o
,$(PROGS
)) $(COMMON
)
16 $(PROGS
): %: %.o
$(COMMON
) Makefile
17 $(CC
) $(CFLAGS
) $(LDFLAGS
) $< $(COMMON
) $(LIBS
) -o
$@
19 $(OBJS
): %.o
: %.c tools.h Makefile
20 $(CC
) $(CFLAGS
) $(DEFINES
) -c
$< -o
$@
23 -rm -f
$(OBJS
) $(PROGS
)