title: Makefile .c + .as with ncurses
body: <p>I have some problems with compiling my program to use ncurses. Im new in creating makefiles so:</p>
  
  <p>Here's my makefile:</p>
  
  <pre><code>test_reservation: reservation.o service.o
      gcc -g -m32 service.o reservation.o -o test_reservation 
  service.o: service.c
      gcc -g -m32 -c -o service.o service.c -std=c99 -lncurses
  reservation.o: reservation.s
      as -gdbb --32 -o reservation.o reservation.s
  </code></pre>
  
  <p>I've already installed and included  in my c file</p>
  
  <p>When I'm trying to make it:</p>
  
  <pre><code>gcc -g -m32 service.o reservation.o -o test_reseration
  service.o: In function `main':
  /home/xxx/reservationService/service.c:23: undefined reference to `initscr'
  collect2: error: ld returned 1 exit status
  makefile:2: recipe for target 'test_reservation' failed
  make: *** [test_reservation] Error 1
  </code></pre>
  
  <p>What's wrong with this makefile? How should I compile it?</p>