chiark / gitweb /
Renames and cleanups.
[ypp-sc-tools.main.git] / pctb / Makefile
index 2265cecf38f189376a197d031cb76250721ffe9f..afea4283118d4eb6f7b69942149a06d75d24c218 100644 (file)
@@ -1,3 +1,4 @@
+CC= gcc
 OPTIMISE= -O2
 WERROR= -Werror
 WARNINGS= -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \
@@ -6,16 +7,16 @@ DEBUG=-g
 
 CFLAGS += $(WARNINGS) $(WERROR) $(OPTIMISE) $(DEBUG)
 
-TARGETS= convert x-manip-window
+TARGETS= ypp-commodities
 
 all: $(TARGETS)
 
 CONVERT_OBJS= convert.o ocr.o pages.o structure.o
 
-convert: $(CONVERT_OBJS) -lnetpbm -lXtst -lX11
-$(CONVERT_OBJS): ocr.h convert.h structure.h
+ypp-commodities: $(CONVERT_OBJS) -lnetpbm -lXtst -lX11
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
 
-x-manip-window: -lXtst -lX11
+$(CONVERT_OBJS): ocr.h convert.h structure.h common.h
 
 clean:
-       rm -f $(TARGETS) *.o core core.*
+       rm -f $(TARGETS) *.o core core.* *~ t t.* u u.* ./#pages#.ppm