OpenCores
URL https://opencores.org/ocsvn/csa/csa/trunk

Subversion Repositories csa

[/] [csa/] [trunk/] [sw_sim/] [makefile] - Blame information for rev 51

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 simon111
 
2 49 simon111
PROJ_NAME ?= group_decrypt
3 15 simon111
DEBUG ?=y
4 10 simon111
 
5 34 simon111
CFLAGS=-g -ggdb -ansi -Wall
6 10 simon111
 
7 15 simon111
ifeq ($(DEBUG),y)
8
CFLAGS+=-DDEBUG
9
endif
10
 
11 10 simon111
all:$(PROJ_NAME)
12
 
13
clean:
14
        rm -fr $(PROJ_NAME)
15
        rm -fr *.o
16
 
17 49 simon111
tt:$(PROJ_NAME)
18 10 simon111
        ./$(PROJ_NAME) <../test_dat/$(PROJ_NAME).in >../test_dat/$(PROJ_NAME).out.sw
19
 
20 49 simon111
dd:$(PROJ_NAME)
21 22 simon111
        echo "set args <../test_dat/$(PROJ_NAME).in >../test_dat/$(PROJ_NAME).out.sw " >gdb-command
22
        ddd ./$(PROJ_NAME) -x gdb-command
23
 
24
 
25 10 simon111
key_perm:csa.o key_perm.o
26
 
27 13 simon111
key_schedule:csa.o key_schedule.o
28 10 simon111
 
29 16 simon111
block_decypher:csa.o block_decypher.o
30 17 simon111
 
31 18 simon111
decrypt:csa.o decrypt.o
32 20 simon111
 
33
stream_cypher:csa.o stream_cypher.o
34 34 simon111
 
35 49 simon111
group_decrypt:csa.o group_decrypt.o
36
 
37 34 simon111
-include .depend
38
 
39
CSRCS=                           \
40
        block_decypher.c         \
41
        csa.c decrypt.c          \
42
        get_key_perm_table.c     \
43
        key_perm.c               \
44
        key_schedule.c           \
45
        misc.c                   \
46
        stream_cypher.c
47
 
48
depend:
49
        rm -fr .depend
50
        for f in $(CSRCS);              \
51
        do                              \
52
                gcc -M -MM $$f>>.depend;\
53
        done

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.