tachtig: Handle directories.
[svpe-tools.git] / Makefile
blobd63f27f7299c4e6b1352097e0af8b040385bd092
1 PROGS = zeventig tachtig negentig tpl 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)