Makefile noob
OldFartRadioman
Posts: 30
Trying to port a library ( or at least functionality ) from PC GCC to Propgcc. The code compiles on the PC using this makefile:
mdc_test: mdc_test.c mdc_decode.o mdc_encode.o
cc -g -o mdc_test mdc_test.c mdc_decode.o mdc_encode.o
./mdc_test
mdc_decode.o: mdc_decode.c mdc_decode.h mdc_common.c
cc -c mdc_decode.c
mdc_encode.o: mdc_encode.c mdc_encode.h mdc_common.c
cc -c mdc_encode.c
clean:
rm -f mdc_decode.o mdc_encode.o mdc_test
This looks like just a straight forward multifile Make, any thoughts on how this would look for PropGCC? My last dealings with makefiles was in the heydays of the Amiga I have looked at the samples in the demo directory but quickly get lost in the maze of switches. The code will have to be highly modified to do anything useful on the Prop but I first have to get over the hurdle of getting my head around a multifile project.
mdc_test: mdc_test.c mdc_decode.o mdc_encode.o
cc -g -o mdc_test mdc_test.c mdc_decode.o mdc_encode.o
./mdc_test
mdc_decode.o: mdc_decode.c mdc_decode.h mdc_common.c
cc -c mdc_decode.c
mdc_encode.o: mdc_encode.c mdc_encode.h mdc_common.c
cc -c mdc_encode.c
clean:
rm -f mdc_decode.o mdc_encode.o mdc_test
This looks like just a straight forward multifile Make, any thoughts on how this would look for PropGCC? My last dealings with makefiles was in the heydays of the Amiga I have looked at the samples in the demo directory but quickly get lost in the maze of switches. The code will have to be highly modified to do anything useful on the Prop but I first have to get over the hurdle of getting my head around a multifile project.
Comments