~ubuntu-branches/ubuntu/precise/nvidia-settings/precise-updates

« back to all changes in this revision

Viewing changes to samples/Makefile

  • Committer: Package Import Robot
  • Author(s): Alberto Milone, Alberto Milone
  • Date: 2013-04-05 16:46:11 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20130405164611-26b1g95ct93vqjvp
Tags: 304.88-0ubuntu0.0.2
* SECURITY UPDATE: ARGB Cursor Buffer Overflow in "NoScanout" Mode
  - CVE-2013-0131

[ Alberto Milone ]
* New upstream release:
  - Match the ABI in the 304.88 release.
* debian/rules:
  - Make sure that the sources are installed correctly.
* Drop 04_nvidia-settings_natty_ftbs.patch and
  02_nvidia-settings-format-string.patch.
* Add 06_remove_local_prefix.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
LDFLAGS               += $(X_LDFLAGS)
57
57
LDFLAGS               += -L $(LIBXNVCTRL_DIR)
58
 
LDFLAGS               += -lXNVCtrl -lXext -lX11
 
58
LIBS                  += -lXNVCtrl -lXext -lX11
59
59
 
60
60
 
61
61
##############################################################################
76
76
# build rules
77
77
##############################################################################
78
78
 
79
 
.PHONY: all clean clobber
 
79
.PHONY: all clean clobber install
80
80
 
81
81
# define the rule to build each object file
82
 
$(foreach src, $(SAMPLE_SOURCES), $(eval $(call DEFINE_OBJECT_RULE,CC,$(src))))
 
82
$(foreach src, $(SAMPLE_SOURCES), $(eval $(call DEFINE_OBJECT_RULE,TARGET,$(src))))
83
83
 
84
84
# define the rule to link each sample app from its corresponding object file
85
85
define link_sample_from_object
86
86
  $$(OUTPUTDIR)/$(1:.c=): $$(call BUILD_OBJECT_LIST,$(1))
87
 
        $$(call quiet_cmd,LINK) $$(CFLAGS) -o $$@ $$< $$(LDFLAGS) $$(BIN_LDFLAGS)
 
87
        $$(call quiet_cmd,LINK) $$(CFLAGS) $$(LDFLAGS) $$(BIN_LDFLAGS) -o $$@ $$< $$(LIBS)
88
88
  all:: $$(OUTPUTDIR)/$(1:.c=)
89
89
  SAMPLES += $$(OUTPUTDIR)/$(1:.c=)
90
90
endef
93
93
 
94
94
clean clobber:
95
95
        rm -rf *~ $(OUTPUTDIR)/*.o $(OUTPUTDIR)/*.d $(SAMPLES)
 
96
 
 
97
install:
 
98
        @# don't install samples, this is just to satisfy the top-level
 
99
        @# recursion rule