Mercurial > hg > audiostuff
comparison intercom/gsm/makefile.cl @ 2:13be24d74cd2
import intercom-0.4.1
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Fri, 25 Jun 2010 09:57:52 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:9cadc470e3da | 2:13be24d74cd2 |
|---|---|
| 1 #-------------------------------------------------------------------------- | |
| 2 # RPELTP makefile for MS Visual C (Windows 9x/NT/2000) | |
| 3 #-------------------------------------------------------------------------- | |
| 4 # Original Copyright message: | |
| 5 # Copyright 1992 by Jutta Degener and Carsten Bormann, Technische | |
| 6 # Universitaet Berlin. See the accompanying file "COPYRIGHT" for | |
| 7 # details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. | |
| 8 # | |
| 9 # File adapted by simao.campos@labs.comsat.com for the UGST distribution. | |
| 10 #-------------------------------------------------------------------------- | |
| 11 | |
| 12 # Machine dependent flags you must configure to port | |
| 13 | |
| 14 ######### Define SASR if >> is a signed arithmetic shift (-1 >> 1 == -1) | |
| 15 SASR = -DSASR | |
| 16 | |
| 17 ######### MUST Define USE_FLOAT_MUL for bit exact performance to GSM Spec. | |
| 18 MULHACK = -DUSE_FLOAT_MUL | |
| 19 | |
| 20 # Choose a compiler. The code works both with ANSI and K&R-C. | |
| 21 # Use -DNeedFunctionPrototypes to compile with, -UNeedFunctionPrototypes to | |
| 22 # compile without, function prototypes in the header files. | |
| 23 # | |
| 24 # You can use the -DSTUPID_COMPILER to circumvent some compilers' | |
| 25 # static limits regarding the number of subexpressions in a statement. | |
| 26 | |
| 27 CC = cl | |
| 28 CCFLAGS = -c -W1 -DNeedFunctionPrototypes=1 | |
| 29 | |
| 30 #-------------------------------------------------------------------------- | |
| 31 # | |
| 32 # You shouldn't have to configure below this line if you're porting. | |
| 33 # | |
| 34 #-------------------------------------------------------------------------- | |
| 35 | |
| 36 # Tools | |
| 37 RM=rm -f | |
| 38 | |
| 39 # Local Directories | |
| 40 INC = . | |
| 41 | |
| 42 # Flags | |
| 43 | |
| 44 ######### Remove -DNDEBUG to enable assertions. | |
| 45 DEBUG = -DNDEBUG | |
| 46 | |
| 47 ######### It's $(CC) $(CFLAGS) | |
| 48 CFLAGS = $(CCFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) -I$(INC) -I../utl | |
| 49 | |
| 50 | |
| 51 #-------------------------------------------------------------------------- | |
| 52 # Headers | |
| 53 HEADERS = proto.h unproto.h config.h private.h gsm.h rpeltp.h | |
| 54 | |
| 55 #-------------------------------------------------------------------------- | |
| 56 # Sources | |
| 57 GSM_SOURCES = add.c code.c debug.c decode.c long_ter.c lpc.c \ | |
| 58 preproce.c rpe.c gsm_dest.c gsm_deco.c gsm_enco.c \ | |
| 59 gsm_expl.c gsm_impl.c gsm_crea.c gsm_prin.c gsm_opti.c \ | |
| 60 rpeltp.c short_te.c table.c | |
| 61 | |
| 62 DEMO_SOURCES = rpedemo.c ../g711/g711.c | |
| 63 | |
| 64 SOURCES = $(GSM_SOURCES) $(DEMO_SOURCES) | |
| 65 | |
| 66 #-------------------------------------------------------------------------- | |
| 67 # Object files | |
| 68 GSM_OBJECTS = add.obj code.obj debug.obj decode.obj long_ter.obj lpc.obj \ | |
| 69 preproce.obj rpe.obj gsm_dest.obj gsm_deco.obj gsm_enco.obj \ | |
| 70 gsm_expl.obj gsm_impl.obj gsm_crea.obj gsm_prin.obj \ | |
| 71 gsm_opti.obj rpeltp.obj short_te.obj table.obj | |
| 72 | |
| 73 DEMO_OBJECTS = rpedemo.obj g711.obj | |
| 74 | |
| 75 OBJECTS = $(GSM_OBJECTS) $(DEMO_OBJECTS) | |
| 76 | |
| 77 | |
| 78 # ------------------------------------------------ | |
| 79 # Implicit rules | |
| 80 # ------------------------------------------------ | |
| 81 .c.obj: | |
| 82 $(CC) $(CFLAGS) $? | |
| 83 | |
| 84 # ------------------------------------------------ | |
| 85 # Generic rules | |
| 86 # ------------------------------------------------ | |
| 87 all:: rpedemo | |
| 88 | |
| 89 anyway: clean rpedemo | |
| 90 | |
| 91 clean: | |
| 92 $(RM) $(OBJECTS) | |
| 93 | |
| 94 cleantest: | |
| 95 echo No test file processing available in this directory | |
| 96 | |
| 97 veryclean: clean | |
| 98 $(RM) rpedemo.exe | |
| 99 | |
| 100 # ------------------------------------------------ | |
| 101 # Specific rules | |
| 102 # ------------------------------------------------ | |
| 103 g711.obj: ../g711/g711.c | |
| 104 $(CC) $(CFLAGS) -I../g711 ../g711/g711.c | |
| 105 | |
| 106 rpedemo.obj: rpedemo.c ../g711/g711.h | |
| 107 $(CC) $(CFLAGS) -I../g711 rpedemo.c | |
| 108 | |
| 109 rpedemo: rpedemo.exe | |
| 110 rpedemo.exe: $(OBJECTS) | |
| 111 $(CC) -o rpedemo $(OBJECTS) | |
| 112 | |
| 113 # ------------------------------------------------ | |
| 114 # Run add < add_test.dta to make sure the | |
| 115 # basic arithmetic functions work as intended. | |
| 116 # ------------------------------------------------ | |
| 117 add: add.exe | |
| 118 add.exe: add_test.o | |
| 119 $(CC) $(LFLAGS) -o add add_test.o | |
| 120 | |
| 121 addtst: add.exe add_test.dta | |
| 122 add < add_test.dta > /dev/null |
