It might help if you linked to the product and any instructions that came with it, although I can probably give reasonable advice from just the Makefile in this case. From a quick scan of the Makefile, you've essentially got two variables that you need to set, TARGET and ADD_FILES. Let's assume that you want the resulting compiled and linked executable to be named "panopticon", and you have a main C file named panopticon.c; plus 3 secondary C files/modules named foo.c, bar.c, and baz.c. All the files and Makefile need to be in the same directory. You would configure the following:
N.B. You add the names of the C files as their compiled object (i.e. *.o), not source (*.c), the Makefile will automagically find the corresponding .c files (using the pattern matching rule "%.o: %.c …" near the end of the file). That should take 4 C source files: panopticon.c, foo.c, bar.c, and baz.c; compile them into corresponding *.o object files; and then link them into an executable named panopticon.
Code:
TARGET = panopticonADD_FILES = foo.o bar.o baz.o
Statistics: Posted by Murph9000 — Thu Sep 05, 2024 2:43 am