Makefile 443 Bytes
Newer Older
Cedric Roux's avatar
Cedric Roux committed
1
CC=gcc
Cedric Roux's avatar
Cedric Roux committed
2
CFLAGS=-Wall -g
Cedric Roux's avatar
Cedric Roux committed
3 4 5 6

GENIDS=genids
GENIDS_OBJS=genids.o

Cedric Roux's avatar
Cedric Roux committed
7
all : $(GENIDS) T_messages.txt.h T_IDs.h
Cedric Roux's avatar
Cedric Roux committed
8 9 10 11 12 13 14

$(GENIDS): $(GENIDS_OBJS)
	$(CC) $(CFLAGS) -o $(GENIDS) $(GENIDS_OBJS)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

15 16 17
T_messages.txt.h: T_messages.txt
	xxd -i T_messages.txt > T_messages.txt.h

Cedric Roux's avatar
Cedric Roux committed
18 19 20 21
T_IDs.h: $(GENIDS) T_messages.txt
	./$(GENIDS) T_messages.txt T_IDs.h

clean:
Cedric Roux's avatar
Cedric Roux committed
22
	rm -f *.o $(GENIDS) core T_IDs.h T_messages.txt.h
23
	cd tracer && make clean