tpl2ppm: Renamed from tpl.
[svpe-tools.git] / Makefile
blob020acda519244399d119abd8506378bc49d48125
1 PROGS = zeventig tachtig negentig tpl2ppm dol2elf tmd-dump
2 COMMON = tools.o bn.o ec.o
3 DEFINES = -DLARGE_FILES -D_FILE_OFFSET_BITS=64
4 LIBS = -lcrypto
6 CC = gcc
7 CFLAGS = -Wall -W -Os
8 LDFLAGS =
11 OBJS = $(patsubst %,%.o,$(PROGS)) $(COMMON)
13 all: $(PROGS)
15 $(PROGS): %: %.o $(COMMON) Makefile
16 $(CC) $(CFLAGS) $(LDFLAGS) $< $(COMMON) $(LIBS) -o $@
18 $(OBJS): %.o: %.c tools.h Makefile
19 $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
21 clean:
22 -rm -f $(OBJS) $(PROGS)