Home computickets Missing Separator Error in Makefile

Missing Separator Error in Makefile

Author

Date

Category

You need to execute the file on the server. Posted by a program from several modules, but absolutely nothing I know about the compilation of makefile-s.
Found ready, which exactly suits my needs, only when I run, writes:

** * missing separator. Stop.

Can someone help in a couple of minutes, the tab is correctly placed and lead to the working condition?

# Macros
CC = GCC.
COMP_FLAG = -STD = C99 -Wall -Pedantic-Errors -Werror -Dndebug
LIB_FLAG = -L. -LMTM.
# Main Target.
Tests: Memcache_Test My_Set_Test Cache_Test User_Test
# Targets make & lt; File & gt;
User_Test: user_test.o user.o
  $ (CC) User_Test.o user.o $ (lib_flag) -o $ @
Memcache_Test: Memcache_Test.o Memcache.o User.o Cache.o
  $ (CC) Memcache_Test.o Memcache.o User.o Cache.o $ (lib_flag) -o $ @
Cache_Test: Cache_Test.o Cache.o
  $ (CC) cache_test.o cache.o $ (lib_flag) -o $ @
My_Set_Test: My_Set_Test.o My_Set.o
  $ (CC) My_Set_Test.o My_Set.o -o $ @
# Targets make & lt; File & gt; _Test.o
User_Test.o: Tests / user_test.c user.h tests / test_utilities.h map.h set.h
  $ (CC) -c $ (comp_flag) $ (lib_flag) tests / $ *. C
Memcache_Test.o: Tests / Memcache_Test.c tests / test_utilities.h Memcache.h map.h Cache.h Set.h List.h
  $ (CC) -c $ (comp_flag) $ (lib_flag) tests / $ *. C
Cache_Test.o: Tests / Cache_Test.c Cache.h Tests / test_utilities.h set.h
  $ (CC) -c $ (comp_flag) $ (lib_flag) tests / $ *. C
My_Set_Test.o: My_Set / My_Set_Test.c tests / test_utilities.h My_set / My_Set.h
  $ (CC) -C $ (comp_flag) $ (lib_flag) My_set / $ *. C
# Targets make & lt; File & gt; .o
Memcache.o: Memcache.c Memcache.h Map.h Cache.h List.h Set.h User.h
  $ (CC) -C $ (comp_flag) $ (lib_flag) $ *. C
User.o: user.c user.h set.h map.h
  $ (CC) -C $ (comp_flag) $ (lib_flag) $ *. C
Cache.o: Cache.c cache.h set.h
  $ (CC) -C $ (comp_flag) $ (lib_flag) $ *. C
My_Set.o: My_set / My_set.c My_Set / My_Set.h
  $ (CC) -c $ (comp_flag) My_set / $ *. C
# Target Runs All Test Files
RUN: RUN_MY_SET_TEST RUN_CACHE_TEST RUN_MEMCACHE_TEST RUN_USER_TEST
Run_Clean: Clean Run
run_my_set_test: my_set_test
./my_Set_Test
Run_Cache_Test: Cache_Test
./cache_test
Run_Memcache_Test: Memcache_Test
./memcache_Test
RUN_USER_TEST: User_Test
./user_test
# Target Remove All & Lt; * _ Test & GT; and & lt; *. O & GT; Files.
Clean: Clean_o Clean_Test
Clean_Test:
Rm -f * _Test
Clean_o:
Rm -f * .o

Answer 1, Authority 100%

Where to see indents from the first column, replace everything intense (to the first displayed symbol) with one tab of the tab.

and in the second part you have the tabs of the tab obviously disappeared somewhere. I bring this part:

run_my_set_test: my_set_test
 ./my_Set_Test
Run_Cache_Test: Cache_Test
 ./cache_test
Run_Memcache_Test: Memcache_Test
 ./memcache_Test
RUN_USER_TEST: User_Test
 ./user_test
# Target Remove All & Lt; * _ Test & GT; and & lt; *. O & GT; Files.
Clean: Clean_o Clean_Test
Clean_Test:
 Rm -f * _Test
Clean_o:
 Rm -f * .o

Writes:

** * Missing Separator. Stop.

Usually the Make program also reports the number of the line in which the error is detected.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions