All pastes #118901 Raw Edit

Stuff

public text v1 · immutable
·published 2006-08-06 15:33 UTC
rendered paste body
CC       = gcc
CFLAGS   = -W -Wall -g
ETKFLAGS = `etk-config --libs --cflags`

all: gui main
test: test_download
clean:
      rm -f *.o gui/*.o

download.o: download.c
    $(CC) $(CFLAGS) -c download.c -o download.o

test_download: test_download.c download.o
    $(CC) $(CFLAGS) -c test_download.c -o test_download.o
    $(CC) $(CFLAGS) -o test_download test_download.o download.o

gui: gui/gui.c gui/splash.c
    $(CC) $(CFLAGS) $(ETKFLAGS) -c gui/gui.c -o gui/gui.o   
    $(CC) $(CFLAGS) $(ETKFLAGS) -c gui/splash.c -o gui/splash.o
    
main: gui/gui.o gui/splash.o main.c
    $(CC) $(CFLAGS) -c main.c -o main.o
    $(CC) $(CFLAGS) $(ETKFLAGS) -o main main.o gui/splash.o gui/gui.o


= = = = > make
gcc -W -Wall -g   -c -o gui/gui.o gui/gui.c
In file included from gui/gui.c:1:
gui/gui.h:3:21: etk/Etk.h: No such file or directory
gui/gui.h:4:19: Ecore.h: No such file or directory
Daraus folgen dann natürlich Fehler...

Aber wenn ich's per Hand mach: 
  gcc -o bla gui.c splash.c ../main.c `etk-config --libs --cflags`
Läuft es durch?!


gui.h
#include <stdio.h>
#include <stdlib.h>
#include <etk/Etk.h>
#include <Ecore.h>

void gui(void);
void _quit_app(void *);
void show_status(char *);
int  pbar_update(void *);
void splash_window_show(Etk_Widget *, char *);

static Etk_Widget *_notebook_page_themes();
static Etk_Widget *_notebook_page_static_bg();
static Etk_Widget *_notebook_page_anim_bg();
Etk_Widget *status_label;
Etk_Widget *main_window;


Das Ganze hat so funktioniert, bis ich die Funktionen in 2 Files aufgeteilt habe...