xdemos: Build object files first
This helps debugging on darwin. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -53,17 +53,18 @@ EXTRA_PROGS = \
|
|||||||
|
|
||||||
##### RULES #####
|
##### RULES #####
|
||||||
|
|
||||||
.SUFFIXES:
|
.o: $(LIB_DEP)
|
||||||
.SUFFIXES: .c
|
$(APP_CC) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
.c: $(LIB_DEP)
|
.c.o:
|
||||||
$(APP_CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
$(APP_CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $< -c -o $@
|
||||||
|
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
|
|
||||||
default: $(PROGS)
|
default: $(PROGS)
|
||||||
|
|
||||||
|
$(PROGS): $(PROGS:%=%.o)
|
||||||
|
|
||||||
extra: $(EXTRA_PROGS)
|
extra: $(EXTRA_PROGS)
|
||||||
|
|
||||||
@@ -74,45 +75,29 @@ clean:
|
|||||||
|
|
||||||
|
|
||||||
# special cases
|
# special cases
|
||||||
|
pbutil.o: pbutil.h
|
||||||
|
pbinfo.o: pbutil.h
|
||||||
pbinfo: pbinfo.o pbutil.o
|
pbinfo: pbinfo.o pbutil.o
|
||||||
$(APP_CC) $(CFLAGS) $(LDFLAGS) pbinfo.o pbutil.o $(LIBS) -o $@
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) pbinfo.o pbutil.o $(LIBS) -o $@
|
||||||
|
|
||||||
|
pbdemo.o: pbutil.h
|
||||||
pbdemo: pbdemo.o pbutil.o
|
pbdemo: pbdemo.o pbutil.o
|
||||||
$(APP_CC) $(CFLAGS) $(LDFLAGS) pbdemo.o pbutil.o $(LIBS) -o $@
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) pbdemo.o pbutil.o $(LIBS) -o $@
|
||||||
|
|
||||||
pbinfo.o: pbinfo.c pbutil.h
|
glxgears_fbconfig.o: pbutil.h
|
||||||
$(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbinfo.c
|
|
||||||
|
|
||||||
pbdemo.o: pbdemo.c pbutil.h
|
|
||||||
$(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbdemo.c
|
|
||||||
|
|
||||||
pbutil.o: pbutil.c pbutil.h
|
|
||||||
$(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbutil.c
|
|
||||||
|
|
||||||
glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
|
glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
|
||||||
$(APP_CC) $(CFLAGS) $(LDFLAGS) glxgears_fbconfig.o pbutil.o $(LIBS) -o $@
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) glxgears_fbconfig.o pbutil.o $(LIBS) -o $@
|
||||||
|
|
||||||
glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
|
xuserotfont.o: xuserotfont.h
|
||||||
$(APP_CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) -c -I. $(CFLAGS) glxgears_fbconfig.c
|
xrotfontdemo.o: xuserotfont.h
|
||||||
|
|
||||||
xrotfontdemo: xrotfontdemo.o xuserotfont.o
|
xrotfontdemo: xrotfontdemo.o xuserotfont.o
|
||||||
$(APP_CC) $(CFLAGS) $(LDFLAGS) xrotfontdemo.o xuserotfont.o $(LIBS) -o $@
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) xrotfontdemo.o xuserotfont.o $(LIBS) -o $@
|
||||||
|
|
||||||
xuserotfont.o: xuserotfont.c xuserotfont.h
|
ipc.o: ipc.h
|
||||||
$(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xuserotfont.c
|
corender.o: ipc.h
|
||||||
|
|
||||||
xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
|
|
||||||
$(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xrotfontdemo.c
|
|
||||||
|
|
||||||
corender: corender.o ipc.o
|
corender: corender.o ipc.o
|
||||||
$(APP_CC) $(CFLAGS) $(LDFLAGS) corender.o ipc.o $(LIBS) -o $@
|
$(APP_CC) $(CFLAGS) $(LDFLAGS) corender.o ipc.o $(LIBS) -o $@
|
||||||
|
|
||||||
corender.o: corender.c ipc.h
|
yuvrect_client: yuvrect_client.o
|
||||||
$(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) corender.c
|
$(APP_CC) $< $(LDFLAGS) $(LIBS) -l$(GLU_LIB) -o $@
|
||||||
|
|
||||||
ipc.o: ipc.c ipc.h
|
|
||||||
$(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) ipc.c
|
|
||||||
|
|
||||||
yuvrect_client: yuvrect_client.c
|
|
||||||
$(APP_CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $< $(LDFLAGS) $(LIBS) -l$(GLU_LIB) -o $@
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user