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

Subversion Repositories csa

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

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

Line No. Rev Author Line
1 10 simon111
 
2 22 simon111
PROJ_NAME ?= 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 20 simon111
test:$(PROJ_NAME)
18 10 simon111
        ./$(PROJ_NAME) <../test_dat/$(PROJ_NAME).in >../test_dat/$(PROJ_NAME).out.sw
19
 
20 22 simon111
debug:$(PROJ_NAME)
21
        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
-include .depend
36
 
37
CSRCS=                           \
38
        block_decypher.c         \
39
        csa.c decrypt.c          \
40
        get_key_perm_table.c     \
41
        key_perm.c               \
42
        key_schedule.c           \
43
        misc.c                   \
44
        stream_cypher.c
45
 
46
depend:
47
        rm -fr .depend
48
        for f in $(CSRCS);              \
49
        do                              \
50
                gcc -M -MM $$f>>.depend;\
51
        done

powered by: WebSVN 2.1.0

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