Synchronize the gcc makefiles; make sure the demos are stripped; remove

redundant strip commands.
This commit is contained in:
William McBrine
2006-08-08 20:46:49 +00:00
parent 7d310dd67c
commit 2b8f02fcc6
3 changed files with 12 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ PDCLIBS = $(LIBCURSES) $(LIBPANEL)
################################################################################
.PHONY: all libs clean demos dist
all: $(PDCLIBS) $(DEMOS)
all: libs demos
libs: $(PDCLIBS)
@@ -65,6 +65,7 @@ clean:
-del *.exe
demos: $(DEMOS)
strip *.exe
#------------------------------------------------------------------------
@@ -97,15 +98,12 @@ $(PANOBJS) : %.o: $(pandir)/%.c
firework.exe newdemo.exe rain.exe testcurs.exe worm.exe xmas.exe: \
%.exe: $(demodir)/%.c
$(CC) $(CCFLAGS) -o$@ $< $(LIBCURSES)
strip $@
ptest.exe: $(demodir)/ptest.c $(PANEL_HEADER) $(LIBPANEL)
$(CC) $(CCFLAGS) -o$@ $< $(LIBCURSES) $(LIBPANEL)
strip $@
tuidemo.exe: tuidemo.o tui.o
$(LINK) $(LDFLAGS) -o$@ tuidemo.o tui.o $(LIBCURSES)
strip $@
tui.o: $(demodir)/tui.c $(demodir)/tui.h $(PDCURSES_CURSES_H)
$(CC) -c $(CCFLAGS) -I$(demodir) -o$@ $<

View File

@@ -50,7 +50,11 @@ LIBPANEL = panel.a
PDCLIBS = $(LIBCURSES) $(LIBPANEL)
################################################################################
all: $(PDCLIBS) $(DEMOS)
.PHONY: all libs clean demos dist
all: libs demos
libs: $(PDCLIBS)
clean:
-rm -f *.o

View File

@@ -50,7 +50,11 @@ LIBPANEL = panel.a
PDCLIBS = $(LIBCURSES) $(LIBPANEL)
################################################################################
all: $(PDCLIBS) $(DEMOS)
.PHONY: all libs clean demos dist
all: libs demos
libs: $(PDCLIBS)
clean:
-del *.o